projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
155ca4a
)
log: strerror is always there
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 19 Jan 2010 09:47:54 +0000
(10:47 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 19 Jan 2010 09:47:54 +0000
(10:47 +0100)
src/log.c
patch
|
blob
|
history
diff --git
a/src/log.c
b/src/log.c
index
0463a62
..
05f79d4
100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-32,21
+32,6
@@
#include <yaz/snprintf.h>
#include <yaz/xmalloc.h>
-#define HAS_STRERROR 1
-
-
-#if HAS_STRERROR
-
-#else
-char *strerror(int n)
-{
- extern char *sys_errlist[];
- return sys_errlist[n];
-}
-
-#endif
-
-
static int l_level = YLOG_DEFAULT_LEVEL;
enum l_file_type { use_stderr, use_none, use_file };