httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject [PATCH] typecast in mod_mime_magic
Date Fri, 14 Nov 1997 22:12:48 GMT
Causes warnings on platforms like Solaris where st_mode is mode_t and the
compiler doesn't know %o ~= mode_t.

Index: mod_mime_magic.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_mime_magic.c,v
retrieving revision 1.19
diff -u -r1.19 mod_mime_magic.c
--- mod_mime_magic.c	1997/10/30 19:20:51	1.19
+++ mod_mime_magic.c	1997/11/14 22:04:59
@@ -1530,7 +1530,7 @@
 	break;
     default:
 	aplog_error(APLOG_MARK, APLOG_NOERRNO | APLOG_ERR, r->server,
-		    MODNAME ": invalid mode 0%o.", sb->st_mode);
+		    MODNAME ": invalid mode 0%o.", (unsigned int)sb->st_mode);
 	return HTTP_INTERNAL_SERVER_ERROR;
     }
 


Mime
View raw message