From cf10e1615c2fa1c65fa7bf2dc6dc82e55c283edd Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 8 Mar 2012 16:29:23 -0600 Subject: [PATCH] fix printf warning --- eris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eris.c b/eris.c index b25a62a..2865199 100644 --- a/eris.c +++ b/eris.c @@ -181,7 +181,7 @@ not_found() header(404, "Not Found"); 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("%s\n", msg); /* sizeof msg includes the NULL */ dolog(404, sizeof msg);