Do not define macros starting with _

This commit is contained in:
Radim Kolar 2020-06-06 09:42:16 +02:00
parent 4f28a697b3
commit d21ae4b085
5 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,5 @@
#ifndef _FSP_MY_STRING_H_ #ifndef FSP_MY_STRING_H_
#define _FSP_MY_STRING_H_ 1 #define FSP_MY_STRING_H_ 1
#include <string.h> #include <string.h>

View File

@ -1,5 +1,5 @@
#ifndef _FSP_S_EXTERN_H_ #ifndef FSP_S_EXTERN_H_
#define _FSP_S_EXTERN_H_ 1 #define FSP_S_EXTERN_H_ 1
/* conf.c, read and check configuration */ /* conf.c, read and check configuration */
extern int daemonize,use_prebuild_dirlists,read_only,dbug; extern int daemonize,use_prebuild_dirlists,read_only,dbug;
@ -91,4 +91,4 @@ void fsplogs (void);
void fsploga(const char *fmt, ...); void fsploga(const char *fmt, ...);
void xferlog(char direction, const char *filename,unsigned long filesize,const char *hostname); void xferlog(char direction, const char *filename,unsigned long filesize,const char *hostname);
#endif /* _FSP_S_EXTERN_H_ */ #endif /* FSP_S_EXTERN_H_ */

View File

@ -1,5 +1,5 @@
#ifndef _FSP_SERVER_CONF_H_ #ifndef FSP_SERVER_CONF_H_
#define _FSP_SERVER_CONF_H_ 1 #define FSP_SERVER_CONF_H_ 1
/**************************************************************************** /****************************************************************************
* Set this to the location of the fspd.conf file on your system * * Set this to the location of the fspd.conf file on your system *
@ -49,4 +49,4 @@
*/ */
#define THCCOUNT 10 #define THCCOUNT 10
#endif /* _FSP_SERVER_CONF_H_ */ #endif /* FSP_SERVER_CONF_H_ */

View File

@ -7,8 +7,8 @@
* use of this software. * * use of this software. *
\*********************************************************************/ \*********************************************************************/
#ifndef _FSP_SERVER_DEF_H_ #ifndef FSP_SERVER_DEF_H_
#define _FSP_SERVER_DEF_H_ 1 #define FSP_SERVER_DEF_H_ 1
#include "common_def.h" #include "common_def.h"
#include "server_conf.h" #include "server_conf.h"
@ -121,4 +121,4 @@ typedef struct {
#define FOURGIGS 0xffffffffUL #define FOURGIGS 0xffffffffUL
#define TWOGIGS 0x7fffffffUL #define TWOGIGS 0x7fffffffUL
#endif /* _FSP_SERVER_DEF_H_ */ #endif /* FSP_SERVER_DEF_H_ */

View File

@ -1,5 +1,5 @@
#ifndef _FSP_TWEAK_H_ #ifndef FSP_TWEAK_H_
#define _FSP_TWEAK_H_ 1 #define FSP_TWEAK_H_ 1
#include <sys/types.h> #include <sys/types.h>
#include <sysexits.h> #include <sysexits.h>
@ -49,4 +49,4 @@
#define BB_READ2(V) ntohs(*(const u_int16_t *)(V)) #define BB_READ2(V) ntohs(*(const u_int16_t *)(V))
#define BB_WRITE2(V,A) *(u_int16_t *)(V) = htons(A) #define BB_WRITE2(V,A) *(u_int16_t *)(V) = htons(A)
#endif /* _FSP_TWEAK_H_ */ #endif /* FSP_TWEAK_H_ */