From 00e6546f0c0b86ecf281b2ccb39d10f76ec58d98 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Sun, 6 Jul 2014 22:31:11 -0400 Subject: [PATCH] namelength should be signed, -Werror is probably overkill --- build/Makefile | 2 +- src/friendlist.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/Makefile b/build/Makefile index a1351e0..f1d5882 100644 --- a/build/Makefile +++ b/build/Makefile @@ -15,7 +15,7 @@ MANFILES = toxic.1 toxic.conf.5 LIBS = libtoxcore ncursesw -CFLAGS = -std=gnu99 -pthread -Wall -Werror +CFLAGS = -std=gnu99 -pthread -Wall CFLAGS += -DTOXICVER="\"$(VERSION)\"" -DHAVE_WIDECHAR -D_XOPEN_SOURCE_EXTENDED CFLAGS += -DPACKAGE_DATADIR="\"$(abspath $(DATADIR))\"" CFLAGS += $(USER_CFLAGS) diff --git a/src/friendlist.h b/src/friendlist.h index 7b37654..85dfe88 100644 --- a/src/friendlist.h +++ b/src/friendlist.h @@ -46,7 +46,7 @@ struct LastOnline { typedef struct { char name[TOX_MAX_NAME_LENGTH]; - uint16_t namelength; + int namelength; char statusmsg[TOX_MAX_STATUSMESSAGE_LENGTH]; uint16_t statusmsg_len; char groupchat_key[TOX_CLIENT_ID_SIZE];