Skip to content

Commit

Permalink
Renamed len to __len in luv_server_broadcast
Browse files Browse the repository at this point in the history
Trying to avoid any potentional name conflicts.
  • Loading branch information
ibykow authored and thlorenz committed Oct 11, 2015
1 parent 3fa5721 commit b3c649f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interactive_horse_race/interactive_horse_race.h
Expand Up @@ -26,12 +26,12 @@
#define MAX_CLIENTS 2

#define luv_server_broadcast(s, fmt, ...) do { \
int i, len; \
int i, __len; \
char msg[MAX_MSG]; \
snprintf(msg, MAX_MSG, fmt, ##__VA_ARGS__); \
len = strlen(msg); \
__len = strlen(msg); \
for (i = 0; i < (s)->num_clients; i++) \
luv_server_send((s), (s)->clients[i], msg, len); \
luv_server_send((s), (s)->clients[i], msg, __len); \
} while(0)

typedef struct luv_server_s luv_server_t;
Expand Down

0 comments on commit b3c649f

Please sign in to comment.