projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/libcollectdclient/client.c: Fix "Dead assignment" warning.
[collectd.git]
/
src
/
collectdmon.c
diff --git
a/src/collectdmon.c
b/src/collectdmon.c
index
015344f
..
078b2eb
100644
(file)
--- a/
src/collectdmon.c
+++ b/
src/collectdmon.c
@@
-19,6
+19,10
@@
* Sebastian Harl <sh at tokkee.org>
**/
* Sebastian Harl <sh at tokkee.org>
**/
+#if !defined(__GNUC__) || !__GNUC__
+# define __attribute__(x) /**/
+#endif
+
#include "config.h"
#include <assert.h>
#include "config.h"
#include <assert.h>
@@
-197,13
+201,13
@@
static int collectd_stop (void)
return 0;
} /* collectd_stop */
return 0;
} /* collectd_stop */
-static void sig_int_term_handler (int signo)
+static void sig_int_term_handler (int
__attribute__((unused))
signo)
{
++loop;
return;
} /* sig_int_term_handler */
{
++loop;
return;
} /* sig_int_term_handler */
-static void sig_hup_handler (int signo)
+static void sig_hup_handler (int
__attribute__((unused))
signo)
{
++restart;
return;
{
++restart;
return;