From 6f27a975b96e18c6366b3e9523842e9fb1e7b92f Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 14 Nov 1998 16:40:50 +0000 Subject: [PATCH] ifdef out __warn_references if we are linting. --- lib/libc/compat-43/getwd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libc/compat-43/getwd.c b/lib/libc/compat-43/getwd.c index ef13606ef468..a26e1f68eddc 100644 --- a/lib/libc/compat-43/getwd.c +++ b/lib/libc/compat-43/getwd.c @@ -1,4 +1,4 @@ -/* $NetBSD: getwd.c,v 1.8 1998/06/08 09:38:07 lukem Exp $ */ +/* $NetBSD: getwd.c,v 1.9 1998/11/14 16:40:50 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)getwd.c 8.1 (Berkeley) 6/2/93"; #else -__RCSID("$NetBSD: getwd.c,v 1.8 1998/06/08 09:38:07 lukem Exp $"); +__RCSID("$NetBSD: getwd.c,v 1.9 1998/11/14 16:40:50 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -49,8 +49,10 @@ __RCSID("$NetBSD: getwd.c,v 1.8 1998/06/08 09:38:07 lukem Exp $"); #include #include +#ifndef lint __warn_references(getwd, "warning: getwd() possibly used unsafely, consider using getcwd()"); +#endif char * getwd(buf)