mirror of https://github.com/nealey/eris.git
fix printf warning
This commit is contained in:
parent
71112ac2a7
commit
cf10e1615c
2
eris.c
2
eris.c
|
@ -181,7 +181,7 @@ not_found()
|
||||||
|
|
||||||
header(404, "Not Found");
|
header(404, "Not Found");
|
||||||
printf("Content-Type: text/html\r\n");
|
printf("Content-Type: text/html\r\n");
|
||||||
printf("Content-Length: %lu\r\n", sizeof msg);
|
printf("Content-Length: %lu\r\n", (unsigned long) sizeof msg);
|
||||||
printf("\r\n");
|
printf("\r\n");
|
||||||
printf("%s\n", msg); /* sizeof msg includes the NULL */
|
printf("%s\n", msg); /* sizeof msg includes the NULL */
|
||||||
dolog(404, sizeof msg);
|
dolog(404, sizeof msg);
|
||||||
|
|
Loading…
Reference in New Issue