From 44a6bf988373b8f598481167da21504cd0118a2a Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Sun, 20 Dec 2015 00:21:32 +0300 Subject: [PATCH] argh isspace(*smth) --- linux/Makefile | 2 +- linux/dbstore.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linux/Makefile b/linux/Makefile index 6cde400..7e23bf5 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,4 +1,4 @@ -CFLAGS += -I$(BLUEZ) `pkg-config --cflags glib-2.0` \ +CFLAGS += -g -I$(BLUEZ) `pkg-config --cflags glib-2.0` \ `pkg-config mariadb --cflags` LDLIBS = $(BLUEZ)/lib/.libs/libbluetooth-internal.a \ $(BLUEZ)/src/.libs/libshared-glib.a \ diff --git a/linux/dbstore.c b/linux/dbstore.c index 56e5ba4..42fe8e7 100644 --- a/linux/dbstore.c +++ b/linux/dbstore.c @@ -35,12 +35,12 @@ int dbconfig(char *conffile) rc = 1; break; } - for (k = buf; k < e && isspace(k); k++) /*nothing*/ ; + for (k = buf; k < e && isspace(*k); k++) /*nothing*/ ; if (*k == '#') break; - for (v = k; v < e && !isspace(v) + for (v = k; v < e && !isspace(*v) && *v != ':' && *v != '='; v++) /*nothing*/ ; if (v < e && (*v == ':' || *v == '=')) v++; - for (; v < e && (isspace(v) || *v == ':' || *v == '=') + for (; v < e && (isspace(*v) || *v == ':' || *v == '=') ; v++) /*nothing*/ ; if (v >= e) { /* no value */ -- 2.39.2