mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
mg_comma -> mg_commalist
This commit is contained in:
1 parent
714b7a8145
commit
bd64043377
9 files changed
+64
-59
No files matched your search
@@ -27,7 +27,7 @@ bool mg_log_prefix(int level, const char *file, int line, const char *fname) {
|
||||
if (p == NULL) p = strrchr(file, '\\');
|
||||
p = p == NULL ? file : p + 1;
|
||||
|
||||
while (mg_comma(&s, &k, &v)) {
|
||||
while (mg_commalist(&s, &k, &v)) {
|
||||
if (v.len == 0) max = atoi(k.ptr);
|
||||
if (v.len > 0 && strncmp(p, k.ptr, k.len) == 0) max = atoi(v.ptr);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user