src/server/config/keyfile.c

changeset 101
7fbcdbad0baa
parent 97
09fbefc0e6a9
child 115
51d9a15eac98
--- a/src/server/config/keyfile.c	Sat Oct 17 18:07:04 2015 +0200
+++ b/src/server/config/keyfile.c	Sat Oct 17 21:17:34 2015 +0200
@@ -67,7 +67,7 @@
     KeyfileConfig *conf = p;
     UcxAllocator *mp = conf->parser.mp;
     
-    size_t tkn = 0;
+    ssize_t tkn = 0;
     sstr_t *tk = sstrsplit(line, sstrn(";", 1), &tkn);
     
     if(tkn < 2) {
@@ -115,7 +115,7 @@
     // get groups
     if(tkn == 3) {
         sstr_t groups_str = sstrtrim(tk[2]);
-        size_t ngroups = 0;
+        ssize_t ngroups = 0;
         sstr_t *groups = sstrsplit(groups_str, sstrn(",", 1), &ngroups);
         entry->groups = mp->calloc(mp->pool, ngroups, sizeof(sstr_t));
         entry->numgroups = ngroups;

mercurial