projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
configfile: Be more verbose if the `Server' or `Local' modes are not available.
[collectd.git]
/
src
/
collectd.c
diff --git
a/src/collectd.c
b/src/collectd.c
index
1b44e15
..
e9bc0d5
100644
(file)
--- a/
src/collectd.c
+++ b/
src/collectd.c
@@
-256,7
+256,7
@@
static int pidfile_create (const char *file)
return (1);
}
- fprintf (fh, "%
d\n", getpid
());
+ fprintf (fh, "%
i\n", (int) getpid
());
fclose(fh);
return (0);
@@
-291,6
+291,8
@@
int main (int argc, char **argv)
#if HAVE_LIBRRD
operating_mode = MODE_LOCAL;
+#else
+ operating_mode = MODE_CLIENT;
#endif
/* open syslog */