summaryrefslogtreecommitdiff
path: root/trafgen.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-04 10:11:55 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-04 10:11:55 +0200
commit78a23a4d5ab27c8af26c0e232c099a0c16907649 (patch)
tree7abfec64bdb1c639faca541512e95b6f3bfa9aad /trafgen.c
parent22e4551cb007312ef808669aa70cad10a7657136 (diff)
xio: add ioexact operations
Break this out so that we only need to have sigint non-static where it is really needed. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'trafgen.c')
-rw-r--r--trafgen.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/trafgen.c b/trafgen.c
index 725b360..0a03f86 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -62,7 +62,7 @@ struct cpu_stats {
sig_atomic_t state;
};
-sig_atomic_t sigint = 0;
+static sig_atomic_t sigint = 0;
struct packet *packets = NULL;
size_t plen = 0;
@@ -97,13 +97,9 @@ static const struct option long_options[] = {
};
static int sock;
-
static struct itimerval itimer;
-
static unsigned long interval = TX_KERNEL_PULL_INT;
-
static struct cpu_stats *stats;
-
unsigned int seed;
#define CPU_STATS_STATE_CFG 1