From d21ae4b085227c450e94f06994b1f51f7effd7c0 Mon Sep 17 00:00:00 2001 From: Radim Kolar Date: Sat, 6 Jun 2020 09:42:16 +0200 Subject: [PATCH] Do not define macros starting with _ --- include/my-string.h | 4 ++-- include/s_extern.h | 6 +++--- include/server_conf.h | 6 +++--- include/server_def.h | 6 +++--- include/tweak.h | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/my-string.h b/include/my-string.h index 8bc9ef2..2d8b30c 100644 --- a/include/my-string.h +++ b/include/my-string.h @@ -1,5 +1,5 @@ -#ifndef _FSP_MY_STRING_H_ -#define _FSP_MY_STRING_H_ 1 +#ifndef FSP_MY_STRING_H_ +#define FSP_MY_STRING_H_ 1 #include diff --git a/include/s_extern.h b/include/s_extern.h index 43d5323..fa7732a 100644 --- a/include/s_extern.h +++ b/include/s_extern.h @@ -1,5 +1,5 @@ -#ifndef _FSP_S_EXTERN_H_ -#define _FSP_S_EXTERN_H_ 1 +#ifndef FSP_S_EXTERN_H_ +#define FSP_S_EXTERN_H_ 1 /* conf.c, read and check configuration */ extern int daemonize,use_prebuild_dirlists,read_only,dbug; @@ -91,4 +91,4 @@ void fsplogs (void); void fsploga(const char *fmt, ...); void xferlog(char direction, const char *filename,unsigned long filesize,const char *hostname); -#endif /* _FSP_S_EXTERN_H_ */ +#endif /* FSP_S_EXTERN_H_ */ diff --git a/include/server_conf.h b/include/server_conf.h index 7d38112..af4af56 100644 --- a/include/server_conf.h +++ b/include/server_conf.h @@ -1,5 +1,5 @@ -#ifndef _FSP_SERVER_CONF_H_ -#define _FSP_SERVER_CONF_H_ 1 +#ifndef FSP_SERVER_CONF_H_ +#define FSP_SERVER_CONF_H_ 1 /**************************************************************************** * Set this to the location of the fspd.conf file on your system * @@ -49,4 +49,4 @@ */ #define THCCOUNT 10 -#endif /* _FSP_SERVER_CONF_H_ */ +#endif /* FSP_SERVER_CONF_H_ */ diff --git a/include/server_def.h b/include/server_def.h index d2667da..27c8403 100644 --- a/include/server_def.h +++ b/include/server_def.h @@ -7,8 +7,8 @@ * use of this software. * \*********************************************************************/ -#ifndef _FSP_SERVER_DEF_H_ -#define _FSP_SERVER_DEF_H_ 1 +#ifndef FSP_SERVER_DEF_H_ +#define FSP_SERVER_DEF_H_ 1 #include "common_def.h" #include "server_conf.h" @@ -121,4 +121,4 @@ typedef struct { #define FOURGIGS 0xffffffffUL #define TWOGIGS 0x7fffffffUL -#endif /* _FSP_SERVER_DEF_H_ */ +#endif /* FSP_SERVER_DEF_H_ */ diff --git a/include/tweak.h b/include/tweak.h index 036a2bd..3fe3d45 100644 --- a/include/tweak.h +++ b/include/tweak.h @@ -1,5 +1,5 @@ -#ifndef _FSP_TWEAK_H_ -#define _FSP_TWEAK_H_ 1 +#ifndef FSP_TWEAK_H_ +#define FSP_TWEAK_H_ 1 #include #include @@ -49,4 +49,4 @@ #define BB_READ2(V) ntohs(*(const u_int16_t *)(V)) #define BB_WRITE2(V,A) *(u_int16_t *)(V) = htons(A) -#endif /* _FSP_TWEAK_H_ */ +#endif /* FSP_TWEAK_H_ */