diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-30 20:29:03 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-30 20:29:03 +0200 |
commit | 51d4b04bd5dfbda13af1fcf0045fb6f3b9c0b073 (patch) | |
tree | 776961a48a89302a2632dfd0ad031377570f611d | |
parent | 0caad9ed167b3d5a57739a40e1517040b7070a77 (diff) | |
download | eurephia-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.c | 7 | ||||
-rw-r--r-- | eurephia.h | 2 |
2 files changed, 4 insertions, 5 deletions
@@ -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 ) { @@ -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); |