version 1.2.6.2, 2012/07/31 22:59:33
|
version 1.2.6.3, 2012/07/31 23:08:40
|
Line 60 www_cmp(const char *ct, const char *s)
|
Line 60 www_cmp(const char *ct, const char *s)
|
|
|
assert(ct && s); |
assert(ct && s); |
|
|
while (isspace(*ct)) | while (isspace((int) *ct)) |
ct++; |
ct++; |
|
|
if (!(sc = strchr(ct, ';'))) |
if (!(sc = strchr(ct, ';'))) |
sc = strchr(ct, '\x0'); |
sc = strchr(ct, '\x0'); |
while (isspace(*(sc - 1))) | while (isspace((int) *(sc - 1))) |
sc--; |
sc--; |
|
|
if (strlen(s) != sc - ct) |
if (strlen(s) != sc - ct) |
Line 87 www_cmptype(const char *ct, const char *type)
|
Line 87 www_cmptype(const char *ct, const char *type)
|
|
|
assert(ct && type); |
assert(ct && type); |
|
|
while (isspace(*ct)) | while (isspace((int) *ct)) |
ct++; |
ct++; |
|
|
if (!(sl = strchr(ct, '/'))) |
if (!(sl = strchr(ct, '/'))) |