diff th_util.c @ 99:5819454a28a4

Add th_errno_to_error().
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 25 May 2014 01:01:31 +0300
parents 1760e7f53359
children a8f732601fdc
line wrap: on
line diff
--- a/th_util.c	Sun May 25 01:01:13 2014 +0300
+++ b/th_util.c	Sun May 25 01:01:31 2014 +0300
@@ -132,6 +132,12 @@
 }
 
 
+int th_errno_to_error(int error)
+{
+    return TH_SYSTEM_ERRORS + error;
+}
+
+
 const char *th_error_str(int error)
 {
     if (error >= TH_SYSTEM_ERRORS)