From 1fb0fae11b2d129dd380b6413e5e81d461c8806d Mon Sep 17 00:00:00 2001 From: GDR! Date: Mon, 22 Dec 2014 00:52:27 +0000 Subject: Trying to make the calling convention problem go away --- Makefile | 2 +- main.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 32f6d87..e839995 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ SOURCES = $(wildcard *.c) DEPS=libtoxcore CC=gcc -CFLAGS=-g #-std=c99 +CFLAGS=-g -O2 #-std=c99 CFLAGS += $(shell pkg-config --cflags $(DEPS)) LDFLAGS=-g -pthread -lm -static -lrt LDFLAGS += $(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) return -1; } + /* if(!data) { fprintf(stderr, "Got NULL pointer from toxcore - WTF?\n"); return -1; } + */ if(data[0] != PROTOCOL_MAGIC_HIGH || data[1] != PROTOCOL_MAGIC_LOW) { -- cgit v1.2.3