]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Namespace header inclusion protection macros
authorGuillem Jover <guillem@hadrons.org>
Wed, 14 Jun 2017 00:44:37 +0000 (02:44 +0200)
committerGuillem Jover <guillem@hadrons.org>
Mon, 19 Jun 2017 01:17:21 +0000 (03:17 +0200)
Use LIBBSD_, and remove trailing underscores.

include/bsd/libutil.h
include/bsd/md5.h
include/bsd/netinet/ip_icmp.h
include/bsd/readpassphrase.h
include/bsd/stringlist.h
include/bsd/sys/bitstring.h
include/bsd/sys/queue.h
include/bsd/sys/tree.h
include/bsd/timeconv.h
include/bsd/vis.h

index ebb6160692aca80ac60d49a57dfb029bfcc01df7..45b3b15ac77b7254a855ac6125042f091937b3ee 100644 (file)
@@ -36,8 +36,8 @@
  * $FreeBSD: src/lib/libutil/libutil.h,v 1.47 2008/04/23 00:49:12 scf Exp $
  */
 
-#ifndef _LIBUTIL_H_
-#define _LIBUTIL_H_
+#ifndef LIBBSD_LIBUTIL_H
+#define LIBBSD_LIBUTIL_H
 
 #include <features.h>
 #include <sys/cdefs.h>
@@ -86,4 +86,4 @@ __END_DECLS
 #define FPARSELN_UNESCREST     0x08
 #define FPARSELN_UNESCALL      0x0f
 
-#endif /* !_LIBUTIL_H_ */
+#endif /* !LIBBSD_LIBUTIL_H */
index 9a75fadda1f8c795883d6b1b6d0bbd3281cfc83e..5f3ae4629319d5104657040454a95555f85e568b 100644 (file)
@@ -12,8 +12,8 @@
  * with every copy.
  */
 
-#ifndef _MD5_H_
-#define _MD5_H_
+#ifndef LIBBSD_MD5_H
+#define LIBBSD_MD5_H
 
 #include <stdint.h>
 
@@ -51,4 +51,4 @@ char  *MD5Data(const uint8_t *, size_t, char *)
                __attribute__((__bounded__(__minbytes__,3,MD5_DIGEST_STRING_LENGTH)));
 __END_DECLS
 
-#endif /* _MD5_H_ */
+#endif /* LIBBSD_MD5_H */
index 45f5d72daeb2e6bd1cbd0087eb3d6a6a5d861e3b..b42699a9a961b184adfcb69f49db991157c60141 100644 (file)
@@ -30,8 +30,8 @@
  * $FreeBSD: src/sys/netinet/ip_icmp.h,v 1.22 2004/04/07 20:46:13 imp Exp $
  */
 
-#ifndef _NETINET_IP_ICMP_H_
-#define _NETINET_IP_ICMP_H_
+#ifndef LIBBSD_NETINET_IP_ICMP_H
+#define LIBBSD_NETINET_IP_ICMP_H
 
 #include <sys/types.h>         /* uint32_t */
 #include <netinet/in.h>                /* in_addr */
index e1dacc3c507ff01279ce43641fdc430c9a6fa9e0..14744b81f22bb748c8d6d98adc345c56e6ee73b3 100644 (file)
@@ -20,8 +20,8 @@
  * Materiel Command, USAF, under agreement number F39502-99-1-0512.
  */
 
-#ifndef _READPASSPHRASE_H_
-#define _READPASSPHRASE_H_
+#ifndef LIBBSD_READPASSPHRASE_H
+#define LIBBSD_READPASSPHRASE_H
 
 #define RPP_ECHO_OFF    0x00           /* Turn off echo (default). */
 #define RPP_ECHO_ON     0x01           /* Leave echo on. */
@@ -38,4 +38,4 @@ __BEGIN_DECLS
 char * readpassphrase(const char *, char *, size_t, int);
 __END_DECLS
 
-#endif /* !_READPASSPHRASE_H_ */
+#endif /* !LIBBSD_READPASSPHRASE_H */
index e3c42e919f859ea950cf2c46d6f6e4c94ebd97a6..ff30caca204e2286955e200fe8a8c002a912a2d5 100644 (file)
@@ -29,8 +29,8 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef _STRINGLIST_H
-#define _STRINGLIST_H
+#ifndef LIBBSD_STRINGLIST_H
+#define LIBBSD_STRINGLIST_H
 #include <sys/cdefs.h>
 #include <sys/types.h>
 
@@ -51,4 +51,4 @@ char          *sl_find(StringList *, const char *);
 int             sl_delete(StringList *, const char *, int);
 __END_DECLS
 
-#endif /* _STRINGLIST_H */
+#endif /* LIBBSD_STRINGLIST_H */
index 125ef51d8895d742c4ba59535b20f34412739125..f356ca76d227902caf4bdac7dd94472db276f97c 100644 (file)
@@ -32,8 +32,8 @@
  * $FreeBSD$
  */
 
-#ifndef _SYS_BITSTRING_H_
-#define        _SYS_BITSTRING_H_
+#ifndef LIBBSD_SYS_BITSTRING_H
+#define LIBBSD_SYS_BITSTRING_H
 
 typedef        unsigned char bitstr_t;
 
@@ -143,4 +143,4 @@ typedef     unsigned char bitstr_t;
        *(value) = _value; \
 } while (0)
 
-#endif /* !_SYS_BITSTRING_H_ */
+#endif /* !LIBBSD_SYS_BITSTRING_H */
index 55bd4945fb133cb61797bbf7e750f55b3377f647..4a94ea7724fb2e911616aa854ad8b0c32bd186f5 100644 (file)
@@ -30,8 +30,8 @@
  * $FreeBSD$
  */
 
-#ifndef _SYS_QUEUE_H_
-#define        _SYS_QUEUE_H_
+#ifndef LIBBSD_SYS_QUEUE_H
+#define LIBBSD_SYS_QUEUE_H
 
 #include <sys/cdefs.h>
 
@@ -691,4 +691,4 @@ struct {                                                            \
                (head2)->tqh_last = &(head2)->tqh_first;                \
 } while (0)
 
-#endif /* !_SYS_QUEUE_H_ */
+#endif /* !LIBBSD_SYS_QUEUE_H */
index 1cce727868ae5d120df6a117b35da59faf9cee12..628bec0eef667cf65b773b005582ea4ea6cf2541 100644 (file)
@@ -27,8 +27,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef        _SYS_TREE_H_
-#define        _SYS_TREE_H_
+#ifndef LIBBSD_SYS_TREE_H
+#define LIBBSD_SYS_TREE_H
 
 #include <sys/cdefs.h>
 
@@ -762,4 +762,4 @@ name##_RB_MINMAX(struct name *head, int val)                                \
            ((x) != NULL) && ((y) = name##_RB_PREV(x), (x) != NULL);    \
             (x) = (y))
 
-#endif /* _SYS_TREE_H_ */
+#endif /* LIBBSD_SYS_TREE_H */
index 29e098880e4683aeec045dfcf4c6da667d781fc4..e2a2c5511ff225626936e6fa4d463ae4568f2958 100644 (file)
@@ -38,8 +38,8 @@
  * $FreeBSD$
  */
 
-#ifndef _TIMECONV_H_
-#define _TIMECONV_H_
+#ifndef LIBBSD_TIMECONV_H
+#define LIBBSD_TIMECONV_H
 
 #include <sys/cdefs.h>
 #include <stdint.h>
@@ -54,4 +54,4 @@ time_t _long_to_time(long tlong);
 int _time_to_int(time_t t);
 time_t _int_to_time(int tint);
 
-#endif /* _TIMECONV_H_ */
+#endif /* LIBBSD_TIMECONV_H */
index 835d2d6000a2fb0e7b409431b1549eb511182445..970dfddaa46d4a9a4f09843b2c598b112ad43ad0 100644 (file)
@@ -30,8 +30,8 @@
  * $FreeBSD: src/include/vis.h,v 1.11 2003/10/30 10:40:49 phk Exp $
  */
 
-#ifndef _VIS_H_
-#define        _VIS_H_
+#ifndef LIBBSD_VIS_H
+#define LIBBSD_VIS_H
 
 #include <sys/types.h>
 
@@ -85,4 +85,4 @@ ssize_t strnunvis(char *, const char *, size_t);
 int    unvis(char *, int, int *, int);
 __END_DECLS
 
-#endif /* !_VIS_H_ */
+#endif /* !LIBBSD_VIS_H */