Date: Fri, 25 Jul 1997 16:20:21 +0100 (BST) From: Robin Carey <r.carey@dcs.napier.ac.uk> To: freebsd-bugs@freebsd.org Subject: Hello boys its me again. Message-ID: <Pine.SOL.3.91.970725161441.2931A-100000@artemis>
next in thread | raw e-mail | index | archive | help
Sorry for not send-pr'ing this ... I noticed this the other day: Basically you've got bzero(3) and bcopy(3) being used in /usr/include/sys/types.h for the FD_ZERO() and FD_SET() macros, and you've not included <stdlib.h> - or is it <string.h> - never can tell with these dodgy non-ANSI calls :) This results in a warning with gcc -Wall if you don't accidentally include the right header before <sys/types.h> .... I'd suggest changing them to memset(3) and memcpy(3) respectively, which are ANSI and need <string.h>. BTW Are those FD_*() macros meant to be in <sys/types.h> ? I'd have thought <unistd.h> would be a better place, but thats just my warped sense of direction :) L8r.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.91.970725161441.2931A-100000>