projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update .gitignore files
[openvswitch]
/
lib
/
lockfile.c
diff --git
a/lib/lockfile.c
b/lib/lockfile.c
index e5a041eed4cfc195b2cd39af310afc051648a61a..9bb7c6b18af76a08b8159cb0a57c4a9e04208102 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));
}