projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow sFlowCpInterval=0 to disable counter samples, and fix bug in sampler removal.
[openvswitch]
/
lib
/
cfg.c
diff --git
a/lib/cfg.c
b/lib/cfg.c
index 225827ef5d226936191c600f6b488d8e3182261a..d0170b60e720fd00f5e78721c60c1b8c00fe644a 100644
(file)
--- a/
lib/cfg.c
+++ b/
lib/cfg.c
@@
-136,7
+136,7
@@
cfg_set_file(const char *file_name)
slash = strrchr(file_name, '/');
if (slash) {
lock_name = xasprintf("%.*s/.%s.~lock~",
slash = strrchr(file_name, '/');
if (slash) {
lock_name = xasprintf("%.*s/.%s.~lock~",
-
slash - file_name
, file_name, slash + 1);
+
(int) (slash - file_name)
, file_name, slash + 1);
} else {
lock_name = xasprintf(".%s.~lock~", file_name);
}
} else {
lock_name = xasprintf(".%s.~lock~", file_name);
}