diff options
author | James Morris <jmorris@intercode.com.au> | 2000-11-18 05:14:39 +0000 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2000-11-18 05:14:39 +0000 |
commit | b1e0b99aff57351419c24c618ccb00ae0fb142f9 (patch) | |
tree | 638e2e6d89ce2157db631bc42c486cfb01e95650 /libipq/libipq.c | |
parent | 7559e07f9256c204c932aeb4036f471b037a01b6 (diff) |
added ipq_errstr() to API
Diffstat (limited to 'libipq/libipq.c')
-rw-r--r-- | libipq/libipq.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libipq/libipq.c b/libipq/libipq.c index 93d76f14..ef3a0cd1 100644 --- a/libipq/libipq.c +++ b/libipq/libipq.c @@ -296,6 +296,11 @@ int ipq_ctl(const struct ipq_handle *h, int request, ...) return 1; } +char *ipq_errstr(void) +{ + return ipq_strerror(ipq_errno); +} + void ipq_perror(const char *s) { if (s) @@ -303,7 +308,7 @@ void ipq_perror(const char *s) else fputs("ERROR", stderr); if (ipq_errno) - fprintf(stderr, ": %s", ipq_strerror(ipq_errno)); + fprintf(stderr, ": %s", ipq_errstr()); if (errno) fprintf(stderr, ": %s", strerror(errno)); fputc('\n', stderr); |