aboutsummaryrefslogtreecommitdiff
path: root/libmpio/src/debug.c
diff options
context:
space:
mode:
authorgermeier <germeier>2003-04-27 11:01:26 +0000
committergermeier <germeier>2003-04-27 11:01:26 +0000
commit79e1e41659396335214777f0c237252458dcbfd8 (patch)
tree8d0ade314f7af7da4f9a3a52da8ed5c13f4767f6 /libmpio/src/debug.c
parentd51007358600010933f05109c9e203e87ea06c47 (diff)
downloadmpiosh-79e1e41659396335214777f0c237252458dcbfd8.tar.gz
mpiosh-79e1e41659396335214777f0c237252458dcbfd8.tar.bz2
mpiosh-79e1e41659396335214777f0c237252458dcbfd8.zip
fixed some C code "things" found with "paranoia" CFLAGS settings
Diffstat (limited to 'libmpio/src/debug.c')
-rw-r--r--libmpio/src/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmpio/src/debug.c b/libmpio/src/debug.c
index a1d7240..5b4fae8 100644
--- a/libmpio/src/debug.c
+++ b/libmpio/src/debug.c
@@ -4,7 +4,7 @@
* Authors: Dirk Meyer <dmeyer@tzi.de>
* Andreas Bsching <crunchy@tzi.de>
*
- * $Id: debug.c,v 1.3 2003/04/23 09:06:33 crunchy Exp $
+ * $Id: debug.c,v 1.4 2003/04/27 11:01:29 germeier Exp $
*/
#include "debug.h"
@@ -21,6 +21,7 @@
#define LEVEL_HEXDUMP 5
#define CHECK_FD if (__debug_fd == NULL) return;
+#define CHECK_FD_RETURN0 if (__debug_fd == NULL) return 0;
char *__debug_color = NULL;
int __debug_level = 0;
@@ -296,7 +297,7 @@ _use_debug(int level)
{
if (__debug_level == -1) return 0;
- CHECK_FD;
+ CHECK_FD_RETURN0;
if (level <= __debug_level) {
return 1;