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:
parent
94df9ca047
commit
bcb1db5f7b
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user