projects
/
sort-networks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Global: collectd → libsortnetwork
[sort-networks.git]
/
src
/
sn-evolution.c
diff --git
a/src/sn-evolution.c
b/src/sn-evolution.c
index
86bdfba
..
2f3fba3
100644
(file)
--- a/
src/sn-evolution.c
+++ b/
src/sn-evolution.c
@@
-1,6
+1,6
@@
/**
/**
- *
collectd
- src/sn-evolution.c
- * Copyright (C) 2008
,2009
Florian octo Forster
+ *
libsortnetwork
- src/sn-evolution.c
+ * Copyright (C) 2008
-2010
Florian octo Forster
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@
-16,7
+16,7
@@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
- * Florian octo Forster <
octo at verplant.org
>
+ * Florian octo Forster <
ff at octo.it
>
**/
#ifndef _ISOC99_SOURCE
**/
#ifndef _ISOC99_SOURCE
@@
-46,6
+46,10
@@
#include "sn_network.h"
#include "sn_random.h"
#include "sn_network.h"
#include "sn_random.h"
+#if !defined(__GNUC__) || !__GNUC__
+# define __attribute__(x) /**/
+#endif
+
/* Yes, this is ugly, but the GNU libc doesn't export it with the above flags.
* */
char *strdup (const char *s);
/* Yes, this is ugly, but the GNU libc doesn't export it with the above flags.
* */
char *strdup (const char *s);
@@
-66,7
+70,7
@@
static int evolution_threads_num = 4;
static int do_loop = 0;
static int do_loop = 0;
-static void sigint_handler (int signal)
+static void sigint_handler (int signal
__attribute__((unused))
)
{
do_loop++;
} /* void sigint_handler */
{
do_loop++;
} /* void sigint_handler */
@@
-259,7
+263,7
@@
static int create_offspring (void)
return (0);
} /* int create_offspring */
return (0);
} /* int create_offspring */
-static void *evolution_thread (void *arg)
+static void *evolution_thread (void *arg
__attribute__((unused))
)
{
while (do_loop == 0)
{
{
while (do_loop == 0)
{