Check-in Number:
|
2298 | |
Date: |
2002-Jul-17 15:22:02 (local)
2002-Jul-17 13:22:02 (UTC) |
User: | thl |
Branch: | |
Comment: |
align l2_env_strerror with l2.h |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/l2/l2_env.c 1.7 -> 1.8
--- l2_env.c 2002/01/02 17:07:38 1.7
+++ l2_env.c 2002/07/17 13:22:02 1.8
@@ -183,6 +183,7 @@
/* translate result value into corresponding string */
if (rv == L2_OK) sz = "everything ok";
+ else if (rv == L2_OK_PASS) sz = "everything ok - pass downstream";
else if (rv == L2_ERR_ARG) sz = "invalid argument";
else if (rv == L2_ERR_USE) sz = "invalid use";
else if (rv == L2_ERR_MEM) sz = "no more memory available";
@@ -191,6 +192,7 @@
else if (rv == L2_ERR_FMT) sz = "formatting error";
else if (rv == L2_ERR_INT) sz = "internal error";
else if (rv == L2_ERR_SYN) sz = "syntax error";
+ else if (rv == L2_ERR_CH) sz = "no (more) channel found";
else sz = "unknown error";
n = l2_util_sprintf(cpBuf, nBuf, "%s", sz);
cpBuf += n;
|
|