This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


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

request for comments on FD_ZERO use of bzero



Hi again. :)

I was tracking down warnings in RTEMS and noticed that this was the
culprit:


./include/sys/types.h:#  define	FD_ZERO(p)	bzero((caddr_t)(p), sizeof
(*(p)))
./sys/rtems/sys/types.h:#define FD_ZERO(p)  bzero((caddr_t)(p), sizeof
(*(p)))

bzero is not prototyped when __STRICT_ANSI__ is defined so use of 
FD_ZERO will always generate a warning when in strict ANSI mode.

I think changing the bzero's to memset will fix this.

Comments before I change it?

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985

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