git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "master" branch into "db".
[sliver-openvswitch.git]
/
lib
/
lockfile.c
diff --git
a/lib/lockfile.c
b/lib/lockfile.c
index
e5a041e
..
9bb7c6b
100644
(file)
--- a/
lib/lockfile.c
+++ b/
lib/lockfile.c
@@
-61,8
+61,8
@@
lockfile_name(const char *file_name)
{
const char *slash = strrchr(file_name, '/');
return (slash
{
const char *slash = strrchr(file_name, '/');
return (slash
- ? xasprintf("%.*s/.%s.~lock~",
slash - file_name, file_name,
- slash + 1)
+ ? xasprintf("%.*s/.%s.~lock~",
+
(int) (slash - file_name), file_name,
slash + 1)
: xasprintf(".%s.~lock~", file_name));
}
: xasprintf(".%s.~lock~", file_name));
}