You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jim Jagielski <ji...@jaguNET.com> on 1997/11/14 23:08:20 UTC
Re: [PATCH] typecast in mod_mime_magic
+1
Marc Slemko wrote:
>
> 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;
> }
>
>
>
--
====================================================================
Jim Jagielski | jaguNET Access Services
jim@jaguNET.com | http://www.jaguNET.com/
"Look at me! I'm wearing a cardboard belt!"