httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk-Willem van Gulik <Dirk.vanGu...@jrc.it>
Subject Re: [PATCH] typecast in mod_mime_magic
Date Fri, 14 Nov 1997 22:11:59 GMT

+1 (Tried Solaris, FreeBSD)

Dw.

On Fri, 14 Nov 1997, 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;
>      }
>  
> 
> 


Mime
View raw message