Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/lib/libc/gen Pull up revision 1.3 (requested by kleink):
details: https://anonhg.NetBSD.org/src/rev/8ef9fd098eb2
branches: netbsd-1-4
changeset: 470369:8ef9fd098eb2
user: he <he%NetBSD.org@localhost>
date: Tue Feb 15 10:05:06 2000 +0000
description:
Pull up revision 1.3 (requested by kleink):
Arrange for a linker warning to be displayed when the errno datum
is accessed directly (not using <errno.h>).
diffstat:
lib/libc/gen/errno.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r f9519ba91d7d -r 8ef9fd098eb2 lib/libc/gen/errno.c
--- a/lib/libc/gen/errno.c Sun Feb 13 23:20:42 2000 +0000
+++ b/lib/libc/gen/errno.c Tue Feb 15 10:05:06 2000 +0000
@@ -1,3 +1,8 @@
-/* $NetBSD: errno.c,v 1.2 1995/02/27 03:42:51 cgd Exp $ */
+/* $NetBSD: errno.c,v 1.2.12.1 2000/02/15 10:05:06 he Exp $ */
+
+#include <sys/cdefs.h>
+
+__warn_references(errno,
+ "warning: reference to deprecated errno; include <errno.h> for correct reference")
int errno;
Home |
Main Index |
Thread Index |
Old Index