diff error.c @ 615:fa38f60e3d8f

error: turn xstrerror into a full fledged function This will make it reasonable to add additional errnos without bloating a static inline. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Sat, 03 Nov 2018 07:34:57 -0400
parents cc74dfea4b17
children 6f8be69c0d8e
line wrap: on
line diff
--- a/error.c	Sat Nov 03 08:34:08 2018 -0400
+++ b/error.c	Sat Nov 03 07:34:57 2018 -0400
@@ -301,6 +301,11 @@
 	}
 }
 
+const char *xstrerror(int e)
+{
+	return strerror(-e);
+}
+
 /*
  * If we have sys/debug.h, let's include it so that the assfail function
  * signature gets checked to be what we expect.