fixed c99 bug

This commit is contained in:
tkarrass 2013-11-02 16:14:50 +01:00
parent 30b1e97483
commit 3dadd1ef49
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
CFLAGS=-g -Wall -Wextra
# -std=c99 # c99 breaks some of your code xD
CFLAGS=-g -Wall -Wextra -std=gnu99
all: bin/netsl

2
net.c
View File

@ -106,7 +106,7 @@ int run_client(const struct prog_info *pinfo, void (*framecallback)(long) ) {
struct addrinfo *info;
int sockfd;
char s[INET6_ADDRSTRLEN];
//char s[INET6_ADDRSTRLEN];
for (info = servinfo; info != NULL; info = info->ai_next) {
if ((sockfd = socket(info->ai_family, info->ai_socktype, info->ai_protocol)) == -1) {
perror("sock");