ossp-pkg/l2/l2_env.c 1.5 -> 1.6
--- l2_env.c 2001/12/14 12:39:08 1.5
+++ l2_env.c 2001/12/22 22:18:34 1.6
@@ -152,23 +152,15 @@
{
va_list ap;
- /* remember error information */
- va_start(ap, fmt);
- l2_env_verrorinfo(env, rv, fmt, ap);
- va_end(ap);
-
- return L2_OK;
-}
-
-l2_result_t l2_env_verrorinfo(l2_env_t *env, l2_result_t rv, const char *fmt, va_list ap)
-{
/* argument sanity check */
if (env == NULL || rv == L2_OK || fmt == NULL)
return L2_ERR_ARG;
/* remember error information */
+ va_start(ap, fmt);
l2_util_vsprintf(env->szErrorInfo, sizeof(env->szErrorInfo), fmt, ap);
env->rvErrorInfo = rv;
+ va_end(ap);
return L2_OK;
}
|
|