projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-format -style=file -i src/daemon/{collectd,configfile,globals}.c
[collectd.git]
/
src
/
daemon
/
collectd.c
diff --git
a/src/daemon/collectd.c
b/src/daemon/collectd.c
index
4df11bc
..
dd9b12f
100644
(file)
--- a/
src/daemon/collectd.c
+++ b/
src/daemon/collectd.c
@@
-463,12
+463,11
@@
void read_cmdline(int argc, char **argv, struct cmdline_config *config) {
/* read options */
while (1) {
int c;
/* read options */
while (1) {
int c;
- c = getopt(argc, argv,
- "htTC:"
+ c = getopt(argc, argv, "htTC:"
#if COLLECT_DAEMON
#if COLLECT_DAEMON
- "fP:"
+
"fP:"
#endif
#endif
- );
+
);
if (c == -1)
break;
if (c == -1)
break;
@@
-553,9
+552,7
@@
int main(int argc, char **argv) {
int exit_status = 0;
struct cmdline_config config = {
int exit_status = 0;
struct cmdline_config config = {
- .daemonize = 1,
- .create_basedir = 1,
- .configfile = CONFIGFILE,
+ .daemonize = 1, .create_basedir = 1, .configfile = CONFIGFILE,
};
read_cmdline(argc, argv, &config);
};
read_cmdline(argc, argv, &config);
@@
-588,7
+585,7
@@
int main(int argc, char **argv) {
#ifdef KERNEL_LINUX
&& notify_upstart() == 0 && notify_systemd() == 0
#endif
#ifdef KERNEL_LINUX
&& notify_upstart() == 0 && notify_systemd() == 0
#endif
- ) {
+
) {
int status;
if ((pid = fork()) == -1) {
int status;
if ((pid = fork()) == -1) {