added ipq_errstr() to API
diff --git a/libipq/libipq.c b/libipq/libipq.c
index 93d76f1..ef3a0cd 100644
--- a/libipq/libipq.c
+++ b/libipq/libipq.c
@@ -296,6 +296,11 @@
 	return 1;
 }
 
+char *ipq_errstr(void)
+{
+	return ipq_strerror(ipq_errno);
+}
+
 void ipq_perror(const char *s)
 {
 	if (s)
@@ -303,7 +308,7 @@
 	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);