summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2018-05-23 17:02:12 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2018-05-23 17:02:12 +0000
commitd3c118ef948d741a56d11a7cbe23094958dffe72 (patch)
tree1910455c9f65977c9de3ba99c2fec587067996e1
parent4bfb1c87937e103f04ec63d9b985b58a65cdd198 (diff)
downloadpw-darwin-d3c118ef948d741a56d11a7cbe23094958dffe72.tar.gz
pw-darwin-d3c118ef948d741a56d11a7cbe23094958dffe72.tar.zst
pw-darwin-d3c118ef948d741a56d11a7cbe23094958dffe72.zip
Use __SCCSID() for SCCS IDs.
- Define NO__SCCSID in CFLAGS to preserve existing behavior of omitting SCCS IDs by default. - While here, fix the $FreeBSD$ in pw_util.c to use __FBSDID.
-rw-r--r--libutil/pw_util.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libutil/pw_util.c b/libutil/pw_util.c
index d28741c..112b6d8 100644
--- a/libutil/pw_util.c
+++ b/libutil/pw_util.c
@@ -36,13 +36,9 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-#if 0
-static const char sccsid[] = "@(#)pw_util.c 8.3 (Berkeley) 4/2/94";
-#endif
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+__SCCSID("@(#)pw_util.c 8.3 (Berkeley) 4/2/94");
/*
* This file is used by all the "password" programs; vipw(8), chpass(1),