OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_util.c versions 1.10 and 1.11
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_util.c 1.10 -> 1.11

--- rc_util.c    2003/06/23 16:09:47     1.10
+++ rc_util.c    2003/07/02 14:45:25     1.11
@@ -37,20 +37,21 @@
 /* Translate an error code to a string */
 char *strErr(rc_return_t rv)
 {
-    if      (rv == RC_OK)      return RC_ERRSTR_OK;
-    else if (rv == RC_ERR_USE) return RC_ERRSTR_USE;
-    else if (rv == RC_ERR_MEM) return RC_ERRSTR_MEM;
-    else if (rv == RC_ERR_SYS) return RC_ERRSTR_SYS;
-    else if (rv == RC_ERR_IO)  return RC_ERRSTR_IO;
-    else if (rv == RC_ERR_INT) return RC_ERRSTR_INT;
-    else if (rv == RC_ERR_FNC) return RC_ERRSTR_FNC;
-    else if (rv == RC_ERR_DIR) return RC_ERRSTR_DIR;
-    else if (rv == RC_ERR_RCF) return RC_ERRSTR_RCF;
-    else if (rv == RC_ERR_TRM) return RC_ERRSTR_TRM;
-    else if (rv == RC_ERR_CFG) return RC_ERRSTR_CFG;
-    else if (rv == RC_WRN_OWR) return RC_WRNSTR_OWR;
-    else if (rv == RC_WRN_NUL) return RC_WRNSTR_NUL;
-    else                       return RC_ERRSTR_UNK;
+    if      (rv == RC_OK)       return RC_ERRSTR_OK;
+    else if (rv == RC_ERR_USE)  return RC_ERRSTR_USE;
+    else if (rv == RC_ERR_MEM)  return RC_ERRSTR_MEM;
+    else if (rv == RC_ERR_SYS)  return RC_ERRSTR_SYS;
+    else if (rv == RC_ERR_IO)   return RC_ERRSTR_IO;
+    else if (rv == RC_ERR_INT)  return RC_ERRSTR_INT;
+    else if (rv == RC_ERR_FNC)  return RC_ERRSTR_FNC;
+    else if (rv == RC_ERR_DIR)  return RC_ERRSTR_DIR;
+    else if (rv == RC_ERR_RCF)  return RC_ERRSTR_RCF;
+    else if (rv == RC_ERR_TRM)  return RC_ERRSTR_TRM;
+    else if (rv == RC_ERR_CFG)  return RC_ERRSTR_CFG;
+    else if (rv == RC_ERR_ROOT) return RC_ERRSTR_ROOT;
+    else if (rv == RC_WRN_OWR)  return RC_WRNSTR_OWR;
+    else if (rv == RC_WRN_NUL)  return RC_WRNSTR_NUL;
+    else                        return RC_ERRSTR_UNK;
 }
 
 /* Vector copy constructor */

CVSTrac 2.0.1