This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: snprintf() on HP-UX 11.00 problem


On Jul 27, 2001, "ERICSON,MATHEW (A-Australia,ex1)" <mathew_ericson@agilent.com> wrote:

> lib/snprintf.c:760: conflicting types for `snprintf'
> /opt/gcc-3.0/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0/include/stdio.h:493:
> previous declaration of `snprintf'

> A grep on /opt/gcc-3.0/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0/include/stdio.h
> shows:
 
>      extern int snprintf(char *, __size_t, char *,...);

This declaration looks reasonable.  What does the
declaration/definition in Samba's lib/snprintf.c:760 look like?
Perhaps it shouldn't be defined at all, given that the OS already
offers this function?  Anyway, this is more likely to be an issue for
samba-technical, rather than gcc-help.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]