# HG changeset patch # User reimar # Date 1283970524 0 # Node ID 30a84c65efa405d249ef9e093b302b973b6440d2 # Parent 86d37b0e4dbc048e3b35313cf7a20c6b7e4ee577 Mark a constant as such and move it into the block where it is used. diff -r 86d37b0e4dbc -r 30a84c65efa4 udp_sync.c --- 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;