summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-09-30 20:29:03 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-09-30 20:29:03 +0200
commit51d4b04bd5dfbda13af1fcf0045fb6f3b9c0b073 (patch)
tree776961a48a89302a2632dfd0ad031377570f611d
parent0caad9ed167b3d5a57739a40e1517040b7070a77 (diff)
downloadeurephia-51d4b04bd5dfbda13af1fcf0045fb6f3b9c0b073.tar.gz
eurephia-51d4b04bd5dfbda13af1fcf0045fb6f3b9c0b073.tar.xz
eurephia-51d4b04bd5dfbda13af1fcf0045fb6f3b9c0b073.zip
Fixed compiler warnings
Fixed some warnings which appeared after commit 2d4ae799159155510dbf564048b9ee754ea1bf92 when not enabling debugging.
-rw-r--r--eurephia.c7
-rw-r--r--eurephia.h2
2 files changed, 4 insertions, 5 deletions
diff --git a/eurephia.c b/eurephia.c
index df24374..7eeb175 100644
--- a/eurephia.c
+++ b/eurephia.c
@@ -40,7 +40,7 @@ const char *get_env(eurephiaCTX *ctx, int logmasking, const char *envp[], const
va_list ap;
char key[384];
int keylen = 0;
- int i, do_mask = 0;
+ int i;
// Build up the key we are looking for
memset(&key, 0, 384);
@@ -54,9 +54,8 @@ const char *get_env(eurephiaCTX *ctx, int logmasking, const char *envp[], const
const char *cp = envp[i] + keylen;
if (*cp == '=') {
#ifdef ENABLE_DEBUG
-#ifdef SHOW_SECRETS
- do_mask = 0;
-#else
+ int do_mask = 0;
+#ifndef SHOW_SECRETS
do_mask = logmasking;
#endif
if( ctx != NULL ) {
diff --git a/eurephia.h b/eurephia.h
index fe66df4..5e2dfb9 100644
--- a/eurephia.h
+++ b/eurephia.h
@@ -23,7 +23,7 @@
#include <stdarg.h>
-const char *get_env(eurephiaCTX *ctx, const char **envp, const char *fmt, ...);
+const char *get_env(eurephiaCTX *ctx, const int mask, const char **envp, const char *fmt, ...);
eurephiaCTX *eurephiaInit(const char **argv);
int eurephiaShutdown(eurephiaCTX *ctx);