projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix collecdmon not start collectd
[collectd.git]
/
src
/
collectdmon.c
diff --git
a/src/collectdmon.c
b/src/collectdmon.c
index
43ff6af
..
36cd939
100644
(file)
--- a/
src/collectdmon.c
+++ b/
src/collectdmon.c
@@
-276,9
+276,10
@@
int main(int argc, char **argv) {
while (42) {
int c = getopt(argc, argv, "hc:P:");
- switch (c) {
- case -1:
+ if (c == -1)
break;
+
+ switch (c) {
case 'c':
collectd = optarg;
break;