Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/file Don't include <sys/cdefs.h> directly. On a Net...



details:   https://anonhg.NetBSD.org/src/rev/4e7f914667ad
branches:  trunk
changeset: 536405:4e7f914667ad
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Sep 15 00:50:18 2002 +0000

description:
Don't include <sys/cdefs.h> directly.  On a NetBSD system, it will be
pulled in by <sys/types.h>, and on a non-NetBSD system (host tool case),
it doesn't really matter (since it's just for the __RCSID macro).

There are larger problems with mkmagic's host tool-ness.  A PR has been
filed.

diffstat:

 usr.bin/file/apprentice.c |  5 ++---
 usr.bin/file/print.c      |  5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 85df88f85a1d -r 4e7f914667ad usr.bin/file/apprentice.c
--- a/usr.bin/file/apprentice.c Sun Sep 15 00:19:22 2002 +0000
+++ b/usr.bin/file/apprentice.c Sun Sep 15 00:50:18 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apprentice.c,v 1.34 2002/08/12 02:41:43 itojun Exp $   */
+/*     $NetBSD: apprentice.c,v 1.35 2002/09/15 00:50:18 thorpej Exp $  */
 
 /*
  * apprentice - make one pass through /etc/magic, learning its secrets.
@@ -39,12 +39,11 @@
 #include <sys/mman.h>
 #endif
 
-#include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
 #if 0
 FILE_RCSID("@(#)Id: apprentice.c,v 1.49 2002/07/03 19:00:41 christos Exp ")
 #else
-__RCSID("$NetBSD: apprentice.c,v 1.34 2002/08/12 02:41:43 itojun Exp $");
+__RCSID("$NetBSD: apprentice.c,v 1.35 2002/09/15 00:50:18 thorpej Exp $");
 #endif
 #endif /* lint */
 
diff -r 85df88f85a1d -r 4e7f914667ad usr.bin/file/print.c
--- a/usr.bin/file/print.c      Sun Sep 15 00:19:22 2002 +0000
+++ b/usr.bin/file/print.c      Sun Sep 15 00:50:18 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.27 2002/07/10 16:15:54 pooka Exp $ */
+/*     $NetBSD: print.c,v 1.28 2002/09/15 00:50:18 thorpej Exp $       */
 
 /*
  * print.c - debugging printout routines
@@ -35,12 +35,11 @@
 #endif
 #include <time.h>
 
-#include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
 #if 0
 FILE_RCSID("@(#)Id: print.c,v 1.38 2002/07/03 18:37:44 christos Exp ")
 #else
-__RCSID("$NetBSD: print.c,v 1.27 2002/07/10 16:15:54 pooka Exp $");
+__RCSID("$NetBSD: print.c,v 1.28 2002/09/15 00:50:18 thorpej Exp $");
 #endif
 #endif  /* lint */
 



Home | Main Index | Thread Index | Old Index