memset in client

This commit is contained in:
Kolan Sh 2011-05-02 19:49:06 +04:00
parent 46901ff78c
commit 57e8f559ee
3 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ OBJECTS=$(SOURCES:%.c=%.o)
#CFLAGS=-march=core2 -mtune=core2 -O2 -mfpmath=sse -msse4.1 -pipe #CFLAGS=-march=core2 -mtune=core2 -O2 -mfpmath=sse -msse4.1 -pipe
#LDFLAGS=-Wl,-O1 -Wl,--as-needed #LDFLAGS=-Wl,-O1 -Wl,--as-needed
CFLAGS+= -g $(shell pkg-config --cflags liblist) CFLAGS+=-O2 $(shell pkg-config --cflags liblist)
LDFLAGS+=$(shell pkg-config --libs liblist) -lpthread LDFLAGS+=$(shell pkg-config --libs liblist) -lpthread
all: $(TARGET) echo-server echo-client all: $(TARGET) echo-server echo-client

View File

@ -6,6 +6,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <string.h>
#include "netfuncs.h" #include "netfuncs.h"

View File

@ -17,7 +17,6 @@
#define NUM_THREADS 1 #define NUM_THREADS 1
#define MAX_CONNECTIONS 1 #define MAX_CONNECTIONS 1
void *serv_request(void *data) void *serv_request(void *data)
{ {
struct connection_cb { struct connection_cb {