]> PatchyGit - patchyircd.git/commitdiff
fix header guards
authorEgor <egor@patchysicp.xyz>
Thu, 19 Oct 2023 11:05:38 +0000 (14:05 +0300)
committerEgor <egor@patchysicp.xyz>
Thu, 19 Oct 2023 11:06:50 +0000 (14:06 +0300)
common.h
irc.h
net.h
util.h

index aa8533f..4750193 100644 (file)
--- a/common.h
+++ b/common.h
@@ -1,5 +1,5 @@
-#ifndef _common_h
-#define _common_h
+#ifndef COMMON_H_
+#define COMMON_H_
 #include "netsock.h"
 #include "config.h"
 #include "trie.h"
diff --git a/irc.h b/irc.h
index 2d1a04c..2ac5e2d 100644 (file)
--- a/irc.h
+++ b/irc.h
@@ -1,5 +1,5 @@
-#ifndef _irc_h
-#define _irc_h
+#ifndef IRC_H_
+#define IRC_H_
 
 #include "common.h"
 #include "net.h"
diff --git a/net.h b/net.h
index fb76e30..c147b03 100644 (file)
--- a/net.h
+++ b/net.h
@@ -1,5 +1,5 @@
-#ifndef _net_h
-#define _net_h
+#ifndef NET_H_
+#define NET_H_
 #include "common.h"
 
 void sendbuf(struct client_data *client);
diff --git a/util.h b/util.h
index 26ee14d..15f98d1 100644 (file)
--- a/util.h
+++ b/util.h
@@ -1,3 +1,5 @@
+#ifndef UTIL_H_
+#define UTIL_H_
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
@@ -15,7 +17,6 @@ void stringupper(char *s);
 void stringlower(char *s);
 #ifndef _MSC_VER
 #pragma GCC poison strdup
-
 #pragma GCC poison strcpy
 #pragma GCC poison strncpy
 #pragma GCC poison strcat
@@ -25,3 +26,4 @@ void stringlower(char *s);
 char *mystrdup(const char *s);
 time_t get_time();
 void set_time(time_t t);
+#endif