summaryrefslogtreecommitdiff
path: root/src/common/socket.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-07-10 16:59:55 +0200
committerHaru <haru@dotalux.com>2014-07-11 08:47:27 +0200
commit68e7f53f05dd80e8b4ab9d84c9931df22a6b060c (patch)
tree5b3d0f0b2f7aad19735b16c8a443a9534d0f5224 /src/common/socket.h
parent8b4f35532c8fd7c7f0939756923fdaf14ee39531 (diff)
downloadhercules-68e7f53f05dd80e8b4ab9d84c9931df22a6b060c.tar.gz
hercules-68e7f53f05dd80e8b4ab9d84c9931df22a6b060c.tar.bz2
hercules-68e7f53f05dd80e8b4ab9d84c9931df22a6b060c.tar.xz
hercules-68e7f53f05dd80e8b4ab9d84c9931df22a6b060c.zip
Fixed reserved __identifier violations
- Complies with CERT DCL37-C - Fixes issue #293 (special thanks to elfring) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/socket.h')
-rw-r--r--src/common/socket.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/socket.h b/src/common/socket.h
index 804b9284f..42b0efe3b 100644
--- a/src/common/socket.h
+++ b/src/common/socket.h
@@ -2,8 +2,8 @@
// See the LICENSE file
// Portions Copyright (c) Athena Dev Teams
-#ifndef _COMMON_SOCKET_H_
-#define _COMMON_SOCKET_H_
+#ifndef COMMON_SOCKET_H
+#define COMMON_SOCKET_H
#include <time.h>
@@ -174,7 +174,7 @@ struct socket_interface *sockt;
void socket_defaults(void);
/* the purpose of these macros is simply to not make calling them be an annoyance */
-#ifndef _H_SOCKET_C_
+#ifndef H_SOCKET_C
#define make_listen_bind(ip, port) ( sockt->make_listen_bind(ip, port) )
#define make_connection(ip, port, opt) ( sockt->make_connection(ip, port, opt) )
#define realloc_fifo(fd, rfifo_size, wfifo_size) ( sockt->realloc_fifo(fd, rfifo_size, wfifo_size) )
@@ -194,6 +194,6 @@ void socket_defaults(void);
#define ntows(netshort) ( sockt->ntows(netshort) )
#define getips(ips, max) ( sockt->getips(ips, max) )
#define set_eof(fd) ( sockt->set_eof(fd) )
-#endif /* _H_SOCKET_C_ */
+#endif /* H_SOCKET_C */
-#endif /* _COMMON_SOCKET_H_ */
+#endif /* COMMON_SOCKET_H */