diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-15 12:44:21 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-15 12:44:21 +0000 |
commit | 4197eaf7b57056454cec3112683d84a3d0d7b194 (patch) | |
tree | 831813de1e8192e5a493200783ae17b770fcc61d /src/sync-mode.c | |
parent | 85617e012de1df43070bd4fba80ecce50dd87735 (diff) | |
download | conntrack-tools-4197eaf7b57056454cec3112683d84a3d0d7b194.tar.gz conntrack-tools-4197eaf7b57056454cec3112683d84a3d0d7b194.zip |
Max Kellermann <max@duempel.org>:
the global variable "alarm" conflicts with the alarm() function from
unistd.h. resolve that conflict by giving those two global variables
a better name.
Diffstat (limited to 'src/sync-mode.c')
-rw-r--r-- | src/sync-mode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c index 16642c2..d38d91f 100644 --- a/src/sync-mode.c +++ b/src/sync-mode.c @@ -126,14 +126,14 @@ static int init_sync(void) memset(state.sync, 0, sizeof(struct ct_sync_state)); if (CONFIG(flags) & CTD_SYNC_FTFW) - STATE_SYNC(sync) = &ftfw; + STATE_SYNC(sync) = &sync_ftfw; else if (CONFIG(flags) & CTD_SYNC_ALARM) - STATE_SYNC(sync) = &alarm; + STATE_SYNC(sync) = &sync_alarm; else { fprintf(stderr, "WARNING: No synchronization mode specified. " "Defaulting to FT-FW mode.\n"); CONFIG(flags) |= CTD_SYNC_FTFW; - STATE_SYNC(sync) = &ftfw; + STATE_SYNC(sync) = &sync_ftfw; } if (STATE_SYNC(sync)->init) |