Source-Changes-HG archive

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

[src/trunk]: src apply __attribute__((__used__)) for rcsid, etc.



details:   https://anonhg.NetBSD.org/src/rev/03576fcb3e98
branches:  trunk
changeset: 359191:03576fcb3e98
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Feb 04 08:19:42 2018 +0000

description:
apply __attribute__((__used__)) for rcsid, etc.

diffstat:

 external/bsd/ipf/bin/ipftest/bpf_filter.c   |  4 ++--
 external/bsd/ipf/dist/ip_fil.c              |  6 +++---
 external/bsd/ipf/dist/ipsend/ip.c           |  6 +++---
 external/bsd/ipf/dist/ipsend/ipresend.c     |  6 +++---
 external/bsd/ipf/dist/ipsend/ipsend.c       |  6 +++---
 external/bsd/ipf/dist/ipsend/ipsopt.c       |  6 +++---
 external/bsd/ipf/dist/ipsend/iptest.c       |  6 +++---
 external/bsd/ipf/dist/ipsend/iptests.c      |  6 +++---
 external/bsd/ipf/dist/ipsend/resend.c       |  6 +++---
 external/bsd/ipf/dist/ipsend/sbpf.c         |  6 +++---
 external/bsd/ipf/dist/ipsend/sock.c         |  6 +++---
 external/bsd/ipf/dist/lib/facpri.c          |  4 ++--
 external/bsd/ipf/dist/lib/getnattype.c      |  4 ++--
 external/bsd/ipf/dist/lib/ipft_hx.c         |  6 +++---
 external/bsd/ipf/dist/lib/ipft_pc.c         |  4 ++--
 external/bsd/ipf/dist/lib/ipft_tx.c         |  6 +++---
 external/bsd/ipf/dist/lib/kmem.c            |  6 +++---
 external/bsd/ipf/dist/lib/nat_setgroupmap.c |  4 ++--
 external/bsd/ipf/dist/lib/printactiveaddr.c |  4 ++--
 external/bsd/ipf/dist/lib/printactivenat.c  |  4 ++--
 external/bsd/ipf/dist/lib/printaps.c        |  4 ++--
 external/bsd/ipf/dist/lib/printnat.c        |  4 ++--
 external/bsd/ipf/dist/lib/printnataddr.c    |  4 ++--
 external/bsd/ipf/dist/lib/printproto.c      |  4 ++--
 external/bsd/ipf/dist/tools/ipf.c           |  6 +++---
 external/bsd/ipf/dist/tools/ipfcomp.c       |  6 +++---
 external/bsd/ipf/dist/tools/ipfs.c          |  4 ++--
 external/bsd/ipf/dist/tools/ipfstat.c       |  6 +++---
 external/bsd/ipf/dist/tools/ipftest.c       |  6 +++---
 external/bsd/ipf/dist/tools/ipmon.c         |  6 +++---
 external/bsd/ipf/dist/tools/ipnat.c         |  6 +++---
 sys/external/bsd/ipf/netinet/fil.c          |  7 ++++---
 32 files changed, 85 insertions(+), 84 deletions(-)

diffs (truncated from 630 to 300 lines):

diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/bin/ipftest/bpf_filter.c
--- a/external/bsd/ipf/bin/ipftest/bpf_filter.c Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/bin/ipftest/bpf_filter.c Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bpf_filter.c,v 1.1 2012/03/23 21:29:45 christos Exp $  */
+/*     $NetBSD: bpf_filter.c,v 1.2 2018/02/04 08:19:42 mrg Exp $       */
 
 /*-
  * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -41,7 +41,7 @@
  */
 
 #if !(defined(lint) || defined(KERNEL) || defined(_KERNEL))
-static const char rcsid[] =
+static __attribute__((__used__)) const char rcsid[] =
     "@(#) Header: /devel/CVS/IP-Filter/bpf_filter.c,v 2.2.2.3 2006/10/03 11:25:56 darrenr Exp (LBL)";
 #endif
 
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/ip_fil.c
--- a/external/bsd/ipf/dist/ip_fil.c    Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/ip_fil.c    Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_fil.c,v 1.4 2012/07/22 14:27:35 darrenr Exp $       */
+/*     $NetBSD: ip_fil.c,v 1.5 2018/02/04 08:19:42 mrg Exp $   */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -8,8 +8,8 @@
  * Id: ip_fil.c,v 1.1.1.2 2012/07/22 13:44:12 darrenr Exp
  */
 #if !defined(lint)
-static const char sccsid[] = "@(#)ip_fil.c     2.41 6/5/96 (C) 1993-2000 Darren Reed";
-static const char rcsid[] = "@(#)Id: ip_fil.c,v 1.1.1.2 2012/07/22 13:44:12 darrenr Exp";
+static __attribute__((__used__)) const char sccsid[] = "@(#)ip_fil.c   2.41 6/5/96 (C) 1993-2000 Darren Reed";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: ip_fil.c,v 1.1.1.2 2012/07/22 13:44:12 darrenr Exp";
 #endif
 
 #include "ipf.h"
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/ipsend/ip.c
--- a/external/bsd/ipf/dist/ipsend/ip.c Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/ipsend/ip.c Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip.c,v 1.3 2012/07/22 14:27:35 darrenr Exp $   */
+/*     $NetBSD: ip.c,v 1.4 2018/02/04 08:19:42 mrg Exp $       */
 
 /*
  * ip.c (C) 1995-1998 Darren Reed
@@ -6,8 +6,8 @@
  * See the IPFILTER.LICENCE file for details on licencing.
  */
 #if !defined(lint)
-static const char sccsid[] = "%W% %G% (C)1995";
-static const char rcsid[] = "@(#)Id: ip.c,v 1.1.1.2 2012/07/22 13:44:36 darrenr";
+static __attribute__((__used__)) const char sccsid[] = "%W% %G% (C)1995";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: ip.c,v 1.1.1.2 2012/07/22 13:44:36 darrenr";
 #endif
 #include <sys/param.h>
 #include <sys/types.h>
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/ipsend/ipresend.c
--- a/external/bsd/ipf/dist/ipsend/ipresend.c   Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/ipsend/ipresend.c   Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipresend.c,v 1.2 2012/07/22 14:27:35 darrenr Exp $     */
+/*     $NetBSD: ipresend.c,v 1.3 2018/02/04 08:19:42 mrg Exp $ */
 
 /*
  * ipresend.c (C) 1995-1998 Darren Reed
@@ -7,8 +7,8 @@
  *
  */
 #if !defined(lint)
-static const char sccsid[] = "%W% %G% (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipresend.c,v 1.1.1.2 2012/07/22 13:44:36 darrenr Exp $";
+static __attribute__((__used__)) const char sccsid[] = "%W% %G% (C)1995 Darren Reed";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: ipresend.c,v 1.1.1.2 2012/07/22 13:44:36 darrenr Exp $";
 #endif
 #include <sys/param.h>
 #include <sys/types.h>
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/ipsend/ipsend.c
--- a/external/bsd/ipf/dist/ipsend/ipsend.c     Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/ipsend/ipsend.c     Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsend.c,v 1.2 2012/07/22 14:27:35 darrenr Exp $       */
+/*     $NetBSD: ipsend.c,v 1.3 2018/02/04 08:19:42 mrg Exp $   */
 
 /*
  * ipsend.c (C) 1995-1998 Darren Reed
@@ -6,8 +6,8 @@
  * See the IPFILTER.LICENCE file for details on licencing.
  */
 #if !defined(lint)
-static const char sccsid[] = "@(#)ipsend.c     1.5 12/10/95 (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipsend.c,v 1.1.1.2 2012/07/22 13:44:36 darrenr Exp $";
+static __attribute__((__used__)) const char sccsid[] = "@(#)ipsend.c   1.5 12/10/95 (C)1995 Darren Reed";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: ipsend.c,v 1.1.1.2 2012/07/22 13:44:36 darrenr Exp $";
 #endif
 #include <sys/param.h>
 #include <sys/types.h>
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/ipsend/ipsopt.c
--- a/external/bsd/ipf/dist/ipsend/ipsopt.c     Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/ipsend/ipsopt.c     Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsopt.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $       */
+/*     $NetBSD: ipsopt.c,v 1.3 2018/02/04 08:19:42 mrg Exp $   */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -7,8 +7,8 @@
  *
  */
 #if !defined(lint)
-static const char sccsid[] = "@(#)ipsopt.c     1.2 1/11/96 (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipsopt.c,v 1.1.1.2 2012/07/22 13:44:36 darrenr Exp $";
+static __attribute__((__used__)) const char sccsid[] = "@(#)ipsopt.c   1.2 1/11/96 (C)1995 Darren Reed";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: ipsopt.c,v 1.1.1.2 2012/07/22 13:44:36 darrenr Exp $";
 #endif
 #include <sys/param.h>
 #include <sys/types.h>
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/ipsend/iptest.c
--- a/external/bsd/ipf/dist/ipsend/iptest.c     Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/ipsend/iptest.c     Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iptest.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $       */
+/*     $NetBSD: iptest.c,v 1.3 2018/02/04 08:19:42 mrg Exp $   */
 
 /*
  * ipsend.c (C) 1995-1998 Darren Reed
@@ -7,8 +7,8 @@
  *
  */
 #if !defined(lint)
-static const char sccsid[] = "%W% %G% (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)Id: iptest.c,v 1.1.1.2 2012/07/22 13:44:37 darrenr Exp $";
+static __attribute__((__used__)) const char sccsid[] = "%W% %G% (C)1995 Darren Reed";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: iptest.c,v 1.1.1.2 2012/07/22 13:44:37 darrenr Exp $";
 #endif
 #include <sys/param.h>
 #include <sys/types.h>
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/ipsend/iptests.c
--- a/external/bsd/ipf/dist/ipsend/iptests.c    Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/ipsend/iptests.c    Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iptests.c,v 1.4 2017/06/15 23:53:56 kamil Exp $        */
+/*     $NetBSD: iptests.c,v 1.5 2018/02/04 08:19:42 mrg Exp $  */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -7,8 +7,8 @@
  *
  */
 #if !defined(lint)
-static const char sccsid[] = "%W% %G% (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)Id: iptests.c,v 1.1.1.2 2012/07/22 13:44:37 darrenr";
+static __attribute__((__used__)) const char sccsid[] = "%W% %G% (C)1995 Darren Reed";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: iptests.c,v 1.1.1.2 2012/07/22 13:44:37 darrenr";
 #endif
 #include <sys/param.h>
 #include <sys/types.h>
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/ipsend/resend.c
--- a/external/bsd/ipf/dist/ipsend/resend.c     Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/ipsend/resend.c     Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: resend.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $       */
+/*     $NetBSD: resend.c,v 1.3 2018/02/04 08:19:42 mrg Exp $   */
 
 /*
  * resend.c (C) 1995-1998 Darren Reed
@@ -7,8 +7,8 @@
  *
  */
 #if !defined(lint)
-static const char sccsid[] = "@(#)resend.c     1.3 1/11/96 (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)Id: resend.c,v 1.1.1.2 2012/07/22 13:44:37 darrenr Exp $";
+static __attribute__((__used__)) const char sccsid[] = "@(#)resend.c   1.3 1/11/96 (C)1995 Darren Reed";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: resend.c,v 1.1.1.2 2012/07/22 13:44:37 darrenr Exp $";
 #endif
 #include <sys/param.h>
 #include <sys/types.h>
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/ipsend/sbpf.c
--- a/external/bsd/ipf/dist/ipsend/sbpf.c       Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/ipsend/sbpf.c       Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbpf.c,v 1.3 2012/07/22 14:27:36 darrenr Exp $ */
+/*     $NetBSD: sbpf.c,v 1.4 2018/02/04 08:19:42 mrg Exp $     */
 
 /*
  * (C)opyright 1995-1998 Darren Reed. (from tcplog)
@@ -49,8 +49,8 @@
 #include "ipsend.h"
 
 #if !defined(lint)
-static const char sccsid[] = "@(#)sbpf.c       1.3 8/25/95 (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)Id: sbpf.c,v 1.1.1.2 2012/07/22 13:44:37 darrenr Exp $";
+static __attribute__((__used__)) const char sccsid[] = "@(#)sbpf.c     1.3 8/25/95 (C)1995 Darren Reed";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: sbpf.c,v 1.1.1.2 2012/07/22 13:44:37 darrenr Exp $";
 #endif
 
 /*
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/ipsend/sock.c
--- a/external/bsd/ipf/dist/ipsend/sock.c       Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/ipsend/sock.c       Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sock.c,v 1.4 2017/06/15 23:50:20 kamil Exp $   */
+/*     $NetBSD: sock.c,v 1.5 2018/02/04 08:19:42 mrg Exp $     */
 
 /*
  * sock.c (C) 1995-1998 Darren Reed
@@ -7,8 +7,8 @@
  *
  */
 #if !defined(lint)
-static const char sccsid[] = "@(#)sock.c       1.2 1/11/96 (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)Id: sock.c,v 1.1.1.2 2012/07/22 13:44:38 darrenr";
+static __attribute__((__used__)) const char sccsid[] = "@(#)sock.c     1.2 1/11/96 (C)1995 Darren Reed";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: sock.c,v 1.1.1.2 2012/07/22 13:44:38 darrenr";
 #endif
 #include <sys/param.h>
 #include <sys/types.h>
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/lib/facpri.c
--- a/external/bsd/ipf/dist/lib/facpri.c        Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/lib/facpri.c        Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: facpri.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $       */
+/*     $NetBSD: facpri.c,v 1.3 2018/02/04 08:19:42 mrg Exp $   */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -22,7 +22,7 @@
 #include "facpri.h"
 
 #if !defined(lint)
-static const char rcsid[] = "@(#)Id: facpri.c,v 1.1.1.2 2012/07/22 13:44:38 darrenr Exp $";
+static  __attribute__((__used__)) const char rcsid[] = "@(#)Id: facpri.c,v 1.1.1.2 2012/07/22 13:44:38 darrenr Exp $";
 #endif
 
 
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/lib/getnattype.c
--- a/external/bsd/ipf/dist/lib/getnattype.c    Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/lib/getnattype.c    Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getnattype.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $   */
+/*     $NetBSD: getnattype.c,v 1.3 2018/02/04 08:19:42 mrg Exp $       */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -11,7 +11,7 @@
 #include "kmem.h"
 
 #if !defined(lint)
-static const char rcsid[] = "@(#)Id: getnattype.c,v 1.1.1.2 2012/07/22 13:44:38 darrenr Exp $";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: getnattype.c,v 1.1.1.2 2012/07/22 13:44:38 darrenr Exp $";
 #endif
 
 
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/lib/ipft_hx.c
--- a/external/bsd/ipf/dist/lib/ipft_hx.c       Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/lib/ipft_hx.c       Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipft_hx.c,v 1.3 2013/10/20 03:09:11 christos Exp $     */
+/*     $NetBSD: ipft_hx.c,v 1.4 2018/02/04 08:19:42 mrg Exp $  */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -6,8 +6,8 @@
  * See the IPFILTER.LICENCE file for details on licencing.
  */
 #if !defined(lint)
-static const char sccsid[] = "@(#)ipft_hx.c    1.1 3/9/96 (C) 1996 Darren Reed";
-static const char rcsid[] = "@(#)Id: ipft_hx.c,v 1.1.1.2 2012/07/22 13:44:39 darrenr Exp $";
+static __attribute__((__used__)) const char sccsid[] = "@(#)ipft_hx.c  1.1 3/9/96 (C) 1996 Darren Reed";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: ipft_hx.c,v 1.1.1.2 2012/07/22 13:44:39 darrenr Exp $";
 #endif
 
 #include <ctype.h>
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/lib/ipft_pc.c
--- a/external/bsd/ipf/dist/lib/ipft_pc.c       Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/lib/ipft_pc.c       Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipft_pc.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $      */
+/*     $NetBSD: ipft_pc.c,v 1.3 2018/02/04 08:19:42 mrg Exp $  */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -11,7 +11,7 @@
 #include "ipt.h"
 
 #if !defined(lint)
-static const char rcsid[] = "@(#)Id: ipft_pc.c,v 1.1.1.2 2012/07/22 13:44:39 darrenr Exp $";
+static __attribute__((__used__)) const char rcsid[] = "@(#)Id: ipft_pc.c,v 1.1.1.2 2012/07/22 13:44:39 darrenr Exp $";
 #endif
 
 struct llc     {
diff -r bb452b6faafc -r 03576fcb3e98 external/bsd/ipf/dist/lib/ipft_tx.c
--- a/external/bsd/ipf/dist/lib/ipft_tx.c       Sun Feb 04 03:37:59 2018 +0000
+++ b/external/bsd/ipf/dist/lib/ipft_tx.c       Sun Feb 04 08:19:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipft_tx.c,v 1.3 2013/10/20 03:09:11 christos Exp $     */
+/*     $NetBSD: ipft_tx.c,v 1.4 2018/02/04 08:19:42 mrg Exp $  */
 
 /*



Home | Main Index | Thread Index | Old Index