Make these work again, by undef'ing the macro that could cause syntax errors.

Also add NOSTRICT in the {h,n}to{n,h}s() cases where the prototype would get
widened...
This commit is contained in:
christos 1999-05-03 13:12:34 +00:00
parent 94df9ca047
commit bcb1db5f7b
4 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: Lint_htonl.c,v 1.1 1997/11/06 00:51:19 cgd Exp $ */
/* $NetBSD: Lint_htonl.c,v 1.2 1999/05/03 13:12:34 christos Exp $ */
/*
* This file placed in the public domain.
@ -6,6 +6,7 @@
*/
#include <sys/types.h>
#undef htonl
/*ARGSUSED*/
in_addr_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: Lint_htons.c,v 1.1 1997/11/06 00:51:23 cgd Exp $ */
/* $NetBSD: Lint_htons.c,v 1.2 1999/05/03 13:12:34 christos Exp $ */
/*
* This file placed in the public domain.
@ -6,8 +6,9 @@
*/
#include <sys/types.h>
#undef htons
/*ARGSUSED*/
/*ARGSUSED*//*NOSTRICT*/
in_port_t
htons(host16)
in_port_t host16;

View File

@ -1,4 +1,4 @@
/* $NetBSD: Lint_ntohl.c,v 1.1 1997/11/06 00:51:25 cgd Exp $ */
/* $NetBSD: Lint_ntohl.c,v 1.2 1999/05/03 13:12:34 christos Exp $ */
/*
* This file placed in the public domain.
@ -6,6 +6,7 @@
*/
#include <sys/types.h>
#undef ntohl
/*ARGSUSED*/
in_addr_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: Lint_ntohs.c,v 1.1 1997/11/06 00:51:28 cgd Exp $ */
/* $NetBSD: Lint_ntohs.c,v 1.2 1999/05/03 13:12:34 christos Exp $ */
/*
* This file placed in the public domain.
@ -6,8 +6,9 @@
*/
#include <sys/types.h>
#undef ntohs
/*ARGSUSED*/
/*ARGSUSED*//*NOSTRICT*/
in_port_t
ntohs(net16)
in_port_t net16;