summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--main.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 32f6d87..e839995 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
1SOURCES = $(wildcard *.c) 1SOURCES = $(wildcard *.c)
2DEPS=libtoxcore 2DEPS=libtoxcore
3CC=gcc 3CC=gcc
4CFLAGS=-g #-std=c99 4CFLAGS=-g -O2 #-std=c99
5CFLAGS += $(shell pkg-config --cflags $(DEPS)) 5CFLAGS += $(shell pkg-config --cflags $(DEPS))
6LDFLAGS=-g -pthread -lm -static -lrt 6LDFLAGS=-g -pthread -lm -static -lrt
7LDFLAGS += $(shell pkg-config --libs $(DEPS)) 7LDFLAGS += $(shell pkg-config --libs $(DEPS))
diff --git a/main.c b/main.c
index 2694ce4..7c9df58 100644
--- a/main.c
+++ b/main.c
@@ -494,11 +494,13 @@ int parse_lossless_packet(void *sender_uc, const uint8_t *data, uint32_t len)
494 return -1; 494 return -1;
495 } 495 }
496 496
497 /*
497 if(!data) 498 if(!data)
498 { 499 {
499 fprintf(stderr, "Got NULL pointer from toxcore - WTF?\n"); 500 fprintf(stderr, "Got NULL pointer from toxcore - WTF?\n");
500 return -1; 501 return -1;
501 } 502 }
503 */
502 504
503 if(data[0] != PROTOCOL_MAGIC_HIGH || data[1] != PROTOCOL_MAGIC_LOW) 505 if(data[0] != PROTOCOL_MAGIC_HIGH || data[1] != PROTOCOL_MAGIC_LOW)
504 { 506 {