]> git.tuebingen.mpg.de Git - adu.git/blobdiff - error.h
Merge commit 'fml/master'
[adu.git] / error.h
diff --git a/error.h b/error.h
index d97ce507451785591bf6a1052325fcd84959d08a..895f9f89bdc68d0a1242afc237fe930fc3db1786 100644 (file)
--- a/error.h
+++ b/error.h
@@ -24,6 +24,8 @@
        _ERROR(EMPTY, "file empty") \
        _ERROR(MMAP, "mmap error") \
        _ERROR(OSL, "osl error") \
+       _ERROR(SIGNAL_SIG_ERR, "signal() returned SIG_ERR") \
+       _ERROR(OUTPUT, "error writing output file") \
 
 
 /**
@@ -54,7 +56,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));
        }