Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net Make these work again, by undef'ing the macro t...
details: https://anonhg.NetBSD.org/src/rev/37225c795ede
branches: trunk
changeset: 472596:37225c795ede
user: christos <christos%NetBSD.org@localhost>
date: Mon May 03 13:12:34 1999 +0000
description:
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...
diffstat:
lib/libc/net/Lint_htonl.c | 3 ++-
lib/libc/net/Lint_htons.c | 5 +++--
lib/libc/net/Lint_ntohl.c | 3 ++-
lib/libc/net/Lint_ntohs.c | 5 +++--
4 files changed, 10 insertions(+), 6 deletions(-)
diffs (74 lines):
diff -r 391016db3859 -r 37225c795ede lib/libc/net/Lint_htonl.c
--- a/lib/libc/net/Lint_htonl.c Mon May 03 12:01:14 1999 +0000
+++ b/lib/libc/net/Lint_htonl.c Mon May 03 13:12:34 1999 +0000
@@ -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
diff -r 391016db3859 -r 37225c795ede lib/libc/net/Lint_htons.c
--- a/lib/libc/net/Lint_htons.c Mon May 03 12:01:14 1999 +0000
+++ b/lib/libc/net/Lint_htons.c Mon May 03 13:12:34 1999 +0000
@@ -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;
diff -r 391016db3859 -r 37225c795ede lib/libc/net/Lint_ntohl.c
--- a/lib/libc/net/Lint_ntohl.c Mon May 03 12:01:14 1999 +0000
+++ b/lib/libc/net/Lint_ntohl.c Mon May 03 13:12:34 1999 +0000
@@ -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
diff -r 391016db3859 -r 37225c795ede lib/libc/net/Lint_ntohs.c
--- a/lib/libc/net/Lint_ntohs.c Mon May 03 12:01:14 1999 +0000
+++ b/lib/libc/net/Lint_ntohs.c Mon May 03 13:12:34 1999 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index