From 3dadd1ef491086b8dad113206d0fee1339788765 Mon Sep 17 00:00:00 2001 From: tkarrass Date: Sat, 2 Nov 2013 16:14:50 +0100 Subject: [PATCH] fixed c99 bug --- Makefile | 3 +-- net.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 29fd9ee..472455f 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/net.c b/net.c index 53170e5..981722f 100644 --- a/net.c +++ b/net.c @@ -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");