compiler can't tell int from function? nmh-1.0.4

Vasil Dimov vd at datamax.bg
Thu Dec 22 22:59:02 PST 2005


On Thu, Dec 22, 2005 at 10:20:58PM +0000, Dieter wrote:
> ../h/prototypes.h:73: warning: function declaration isn't a prototype
> context_read.c:12: warning: function declaration isn't a prototype
> 
      09  #include <errno.h>
>     10  #include <pwd.h>
>     11
>     12  extern int errno;    <-- doesn't look like a function to me?

See errno(2), errno is redefined like this
#define errno           (* __error())
in /usr/include/errno.h

The software should rely on errno.h for defining the errno identifier.

-- 
Vasil Dimov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20051223/d298f799/attachment.bin


More information about the freebsd-ports mailing list