changeset 32003:30a84c65efa4

Mark a constant as such and move it into the block where it is used.
author reimar
date Wed, 08 Sep 2010 18:28:44 +0000
parents 86d37b0e4dbc
children c536d4b0ce3d
files udp_sync.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/udp_sync.c	Wed Sep 08 18:25:55 2010 +0000
+++ b/udp_sync.c	Wed Sep 08 18:28:44 2010 +0000
@@ -137,9 +137,8 @@
     static int sockfd;
     static struct sockaddr_in socketinfo;
 
-    int one = 1;
-
     if (!done_init_yet) {
+        static const int one = 1;
         int ip_valid = 0;
 
         done_init_yet = 1;