httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: [PATCH] Re: ap_vsnprintf decl
Date Fri, 24 Jan 1997 10:31:52 GMT
On Fri, 24 Jan 1997, Brian Behlendorf wrote:

> On Fri, 24 Jan 1997, Marc Slemko wrote:
> > >   *** Error code 1
> > > 
> > > Wha?
> > 
> > Try including stdarg.h in conf.h?  Actually, just move the existing
> > include of stdarg.h from the bottom of conf.h to the top.  
> 
> I moved it to right before the ap_snprintf stuff.  Appears to work fine....
> approve?

Looks good to me.

> 
> 
> Index: conf.h
> ===================================================================
> RCS file: /export/home/cvs/apache/src/conf.h,v
> retrieving revision 1.71
> diff -C3 -r1.71 conf.h
> *** conf.h      1997/01/20 23:55:10     1.71
> --- conf.h      1997/01/24 08:22:26
> ***************
> *** 480,485 ****
> --- 480,486 ----
>    */
> 
>   #include <sys/types.h>
> + #include <stdarg.h>
>   /*
>    * We use snprintf() to avoid overflows, but we include
>    * our own version (ap_snprintf). Allow for people to use their
> ***************
> *** 490,495 ****
> --- 491,497 ----
>   #define ap_vsnprintf    vsnprintf
>   #else
>   int ap_snprintf(char *buf, size_t len, const char *format,...);
> + int ap_vsnprintf(char *buf, size_t len, const char *format, va_list ap);
>   #endif
> 
>   #if !defined(NEXT) && !defined(CONVEXOS)
> ***************
> *** 661,667 ****
>   void syslog (int, char *, ...);
>   char *mktemp (char *);
> 
> - #include <stdarg.h>
>   long vfprintf (FILE *, char *, va_list);
> 
>   #endif
> --- 663,668 ----
> 
> 


Mime
View raw message