diff options
author | venaas <venaas> | 2007-05-03 14:42:40 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-05-03 14:42:40 +0000 |
commit | 414b916d07f4a1b475d53627092d24cd5a2a0517 (patch) | |
tree | 79ad9b899e9a2b740d0883049238024100bb506a /util.c | |
parent | 3837212a51ac4ae4c6a76ee91c9301add8d18ee5 (diff) |
using debug() some more places
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@70 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -15,6 +15,7 @@ #include <unistd.h> #include <errno.h> #include <stdarg.h> +#include "debug.h" void errx(char *format, ...) { extern int errno; @@ -53,7 +54,7 @@ char *stringcopy(char *s, int len) { len = strlen(s); r = malloc(len + 1); if (!r) - errx("stringcopy: malloc failed"); + debug(DBG_ERR, "stringcopy: malloc failed"); memcpy(r, s, len); r[len] = '\0'; return r; |