]> git.tuebingen.mpg.de Git - adu.git/blobdiff - error.h
Add create.c.
[adu.git] / error.h
diff --git a/error.h b/error.h
index d97ce507451785591bf6a1052325fcd84959d08a..7c3f4aada972651ec60c9a862b609b12b842a7c6 100644 (file)
--- a/error.h
+++ b/error.h
@@ -24,6 +24,7 @@
        _ERROR(EMPTY, "file empty") \
        _ERROR(MMAP, "mmap error") \
        _ERROR(OSL, "osl error") \
+       _ERROR(SIGNAL_SIG_ERR, "signal() returned SIG_ERR") \
 
 
 /**
@@ -54,7 +55,6 @@ static inline const char *adu_strerror(int num)
 {
        assert(num > 0);
        if (num == E_OSL) {
-               fprintf(stderr, "osl error %d\n", osl_errno & 0xff);
                assert(osl_errno > 0);
                return osl_strerror((osl_errno));
        }