changeset 31991:52a0d770adee

Cosmetics: remove some useless {}
author reimar
date Wed, 08 Sep 2010 17:51:26 +0000
parents 4111548d28f9
children 4229b325910e
files udp_sync.c
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/udp_sync.c	Wed Sep 08 17:50:05 2010 +0000
+++ b/udp_sync.c	Wed Sep 08 17:51:26 2010 +0000
@@ -106,9 +106,8 @@
     chars_received = recvfrom(sockfd, mesg, sizeof(mesg)-1, 0,
                               (struct sockaddr *)&cliaddr, &len);
 
-    if (chars_received == -1) {
+    if (chars_received == -1)
         return 0;
-    }
 
 #if HAVE_WINSOCK2_H
     sock_flags = 0;
@@ -122,9 +121,8 @@
                                (struct sockaddr *)&cliaddr, &len))) {
         chars_received = n;
         mesg[chars_received] = 0;
-        if (strcmp(mesg, "bye") == 0) {
+        if (strcmp(mesg, "bye") == 0)
             return 1;
-        }
     }
 
     if (chars_received > -1) {
@@ -205,9 +203,8 @@
         // without waiting.
         // UDP_TIMING_TOLERANCE is a small value that lets us consider
         // the master equal to us even if it's very slightly ahead.
-        if (udp_master_position + UDP_TIMING_TOLERANCE > my_position) {
+        if (udp_master_position + UDP_TIMING_TOLERANCE > my_position)
           break;
-        }
 
         // the remaining case is that we're slightly ahead of the master.
         // usually, it just means we called get_udp() before the datagram