diff --git a/loc-bts/code/ap/Makefile b/loc-bts/code/ap/Makefile index 46b5a6f..283bde6 100644 --- a/loc-bts/code/ap/Makefile +++ b/loc-bts/code/ap/Makefile @@ -17,7 +17,7 @@ TARGET=apd HEADER=ap.h # Flags -CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I. +CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I. DEPFLAGS=-MMD XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) PICFLAG=-fPIC diff --git a/loc-bts/code/client/Makefile b/loc-bts/code/client/Makefile index 75d6392..c54798e 100644 --- a/loc-bts/code/client/Makefile +++ b/loc-bts/code/client/Makefile @@ -17,7 +17,7 @@ TARGET=locclient HEADER= # Flags -CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I. +CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I. DEPFLAGS=-MMD XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) PICFLAG=-fPIC diff --git a/loc-bts/code/librtaputil/Makefile b/loc-bts/code/librtaputil/Makefile index aa9514d..a4168d4 100644 --- a/loc-bts/code/librtaputil/Makefile +++ b/loc-bts/code/librtaputil/Makefile @@ -1,6 +1,5 @@ # RĂ©pertoire d'installation PREFIX=/usr/local -INSTALL_DIR= $(PREFIX)/sbin INSTALL_LIB= $(PREFIX)/lib INSTALL_INC= $(PREFIX)/include INSTALL_MAN= $(PREFIX)/share/man @@ -31,7 +30,7 @@ HEADER=rtaputil.h OBJS=$(LIB_CIBLE).o # Flags -CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I. +CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I. DEPFLAGS=-MMD XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) PICFLAG=-fPIC diff --git a/loc-bts/code/librtaputil/librtaputil.c b/loc-bts/code/librtaputil/librtaputil.c index 2603446..85e9b04 100644 --- a/loc-bts/code/librtaputil/librtaputil.c +++ b/loc-bts/code/librtaputil/librtaputil.c @@ -122,7 +122,6 @@ BOOL mac_cmp(unsigned char *mac1, unsigned char *mac2) int create_udp_sending_socket(char *server_address, int server_port, struct sockaddr_in *server_description, struct sockaddr_in * client_description) { int sockfd ; // Descripteur de la socket - int ret = 0 ; // Valeur de retour /* Ceation de la socket UDP */ sockfd = socket(AF_INET, SOCK_DGRAM, 0) ; diff --git a/loc-bts/code/rtapaggregate/Makefile b/loc-bts/code/rtapaggregate/Makefile index 92fe491..3bb4468 100644 --- a/loc-bts/code/rtapaggregate/Makefile +++ b/loc-bts/code/rtapaggregate/Makefile @@ -17,7 +17,7 @@ TARGET=rtapaggregated HEADER=rtapaggregate.h # Flags -CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I. +CFLAGS=-O2 -W -Wall -Wstrict-prototypes -O -I. DEPFLAGS=-MMD XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) PICFLAG=-fPIC