diff options
Diffstat (limited to '')
| -rw-r--r-- | src/zperror.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/zperror.c b/src/zperror.c new file mode 100644 index 0000000..37bd5c7 --- /dev/null +++ b/src/zperror.c @@ -0,0 +1,17 @@ +/* See LICENSE file for copyright and license details. */ +#include "internals.h" + +#include <stdio.h> + + +void +zperror(const char *prefix) +{ + if (libzahl_error >= 0) { + errno = libzahl_error; + perror(prefix); + } else { + /* Current, we should not be able to get here. */ + abort(); + } +} |
