]> www.average.org Git - pulsecounter.git/commitdiff
argh isspace(*smth)
authorEugene Crosser <crosser@average.org>
Sat, 19 Dec 2015 21:21:32 +0000 (00:21 +0300)
committerEugene Crosser <crosser@average.org>
Sat, 19 Dec 2015 21:21:32 +0000 (00:21 +0300)
linux/Makefile
linux/dbstore.c

index 6cde40061116bda6b06ad8169da4f5d38151c4b3..7e23bf53dc5939cd426c2720c5397d0b103fb70f 100644 (file)
@@ -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 \
index 56e5ba4b53696737e49ffe33ca2910410eaff159..42fe8e712f9f4fa2a79b3957716e490e520b5d6b 100644 (file)
@@ -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 */