[PATCH 23/29] civetweb: Fix return value when NO_TIMEGM is set.

Christian Mauderer christian.mauderer at embedded-brains.de
Mon Apr 25 15:06:57 UTC 2016


From: Christian Mauderer <Christian.Mauderer at embedded-brains.de>

---
 cpukit/mghttpd/civetweb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/mghttpd/civetweb.c b/cpukit/mghttpd/civetweb.c
index 520a6b6..5d4da3d 100644
--- a/cpukit/mghttpd/civetweb.c
+++ b/cpukit/mghttpd/civetweb.c
@@ -7092,7 +7092,7 @@ is_not_modified(const struct mg_connection *conn, const struct file *filep)
 	return (inm != NULL && !mg_strcasecmp(etag, inm))
 	       || (ims != NULL && (filep->last_modified <= parse_date_string(ims)));
 #else /* NO_TIMEGM */
-	return false;
+	return 0;
 #endif /* !NO_TIMEGM */
 }
 
-- 
1.8.4.5




More information about the devel mailing list