projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mark functions that exit as noreturn
[collectd.git]
/
src
/
collectdmon.c
diff --git
a/src/collectdmon.c
b/src/collectdmon.c
index
65271dd
..
a5ed065
100644
(file)
--- a/
src/collectdmon.c
+++ b/
src/collectdmon.c
@@
-69,7
+69,8
@@
static int restart = 0;
static char *pidfile = NULL;
static pid_t collectd_pid = 0;
static char *pidfile = NULL;
static pid_t collectd_pid = 0;
-static void exit_usage (char *name)
+__attribute__((noreturn))
+static void exit_usage (const char *name)
{
printf ("Usage: %s <options> [-- <collectd options>]\n"
{
printf ("Usage: %s <options> [-- <collectd options>]\n"