comparison udp_sync.c @ 31995:2868b79aa4c5

Remove a useless "else".
author reimar
date Wed, 08 Sep 2010 18:01:56 +0000
parents 2b209fa9c48d
children 6ba4e1cfbaf9
comparison
equal deleted inserted replaced
31994:2b209fa9c48d 31995:2868b79aa4c5
126 return 1; 126 return 1;
127 } 127 }
128 128
129 mesg[chars_received] = 0; 129 mesg[chars_received] = 0;
130 130
131 if (strcmp(mesg, "bye") == 0) { 131 if (strcmp(mesg, "bye") == 0)
132 return 1; 132 return 1;
133 } else {
134 sscanf(mesg, "%f", master_position); 133 sscanf(mesg, "%f", master_position);
135 return 0;
136 }
137
138 return 0; 134 return 0;
139 } 135 }
140 136
141 void send_udp(const char *send_to_ip, int port, char *mesg) 137 void send_udp(const char *send_to_ip, int port, char *mesg)
142 { 138 {