[MPlayer-cvslog] r32087 - trunk/udp_sync.c

reimar subversion at mplayerhq.hu
Wed Sep 8 20:28:44 CEST 2010


Author: reimar
Date: Wed Sep  8 20:28:44 2010
New Revision: 32087

Log:
Mark a constant as such and move it into the block where it is used.

Modified:
   trunk/udp_sync.c

Modified: trunk/udp_sync.c
==============================================================================
--- trunk/udp_sync.c	Wed Sep  8 20:25:55 2010	(r32086)
+++ trunk/udp_sync.c	Wed Sep  8 20:28:44 2010	(r32087)
@@ -137,9 +137,8 @@ void send_udp(const char *send_to_ip, in
     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;


More information about the MPlayer-cvslog mailing list