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/01/24 22:26:11 UTC

Re: [PATCH] Re: ap_vsnprintf decl

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?

+1

> 
> 
> 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 ----
> 
> 


-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
                  "Not the Craw... the CRAW!"