Fixed compiler warnings

This commit is contained in:
2015-04-21 13:31:07 +02:00
parent cc72aac695
commit 19a5d31fc7
3 changed files with 14 additions and 10 deletions
+10
View File
@@ -190,6 +190,16 @@ char _identify_cmd[256];
int run_service(void);
#endif
#ifdef OS_UNIX
gid_t orig_gid; /* Original effective GID before dropping privilege */
uid_t orig_uid; /* Original effective UID before dropping privilege */
char pidfile[256]; /* Pidfile name */
#endif
#ifdef __CYGWIN__ /* bug in cygwin, 'timezone' not linked automatically */
long _timezone;
#endif
/*---- Funcions from the MIDAS library -----------------------------*/
#define my_toupper(_c) ( ((_c)>='a' && (_c)<='z') ? ((_c)-'a'+'A') : (_c) )
+1 -9
View File
@@ -134,16 +134,8 @@ typedef int BOOL;
#define stricmp(s1, s2) strcasecmp(s1, s2)
#endif
gid_t orig_gid; /* Original effective GID before dropping privilege */
uid_t orig_uid; /* Original effective UID before dropping privilege */
char pidfile[256]; /* Pidfile name */
#endif /* OS_UNIX */
#ifdef __CYGWIN__ /* bug in cygwin, 'tmezone' not linked automatically */
long _timezone;
#endif
/* SSL includes */
#ifdef HAVE_SSL
#include <openssl/ssl.h>
@@ -255,7 +247,7 @@ typedef struct {
typedef struct LBNODE *LBLIST;
struct LBNODE {
typedef struct LBNODE {
char name[256];
LBLIST *member;
int n_members;
+3 -1
View File
@@ -153,7 +153,7 @@
D52BA2F113999DB0000458E3 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0600;
LastUpgradeCheck = 0630;
ORGANIZATIONNAME = PSI;
};
buildConfigurationList = D52BA2F413999DB0000458E3 /* Build configuration list for PBXProject "elogd" */;
@@ -219,6 +219,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
@@ -248,6 +249,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;