]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: protect checks.h from multiple inclusions
authorThierry FOURNIER <tfournier@exceliance.fr>
Fri, 14 Jun 2013 13:28:25 +0000 (15:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Jun 2013 17:53:02 +0000 (19:53 +0200)
The types/checks.h include file isn't protected against multiple inclusions,
so let's surround it with "#ifndef _TYPES_CHECKS_H/#endif" to fix this.

include/types/checks.h

index 6dcecf51699986253084bad22a8487c1653034bd..09a4eee013b9234ec25f372c56cdbf9591d99ba2 100644 (file)
@@ -10,6 +10,9 @@
  *
  */
 
+#ifndef _TYPES_CHECKS_H
+#define _TYPES_CHECKS_H
+
 /* check status */
 enum {
        HCHK_STATUS_UNKNOWN      = 0,   /* Unknown */
@@ -102,3 +105,5 @@ struct analyze_status {
        char *desc;                             /* description */
        unsigned char lr[HANA_OBS_SIZE];        /* result for l4/l7: 0 = ignore, 1 - error, 2 - OK */
 };
+
+#endif /* _TYPES_CHECKS_H */