aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-05-13 12:49:08 +0000
committerDaouda Lo <daouda@mandriva.com>2003-05-13 12:49:08 +0000
commit5b688b33c4541d5b0487ed8bfe4224137b629b0e (patch)
treedf62729420da1c702553fbed0c7b408fab02dc76
parent2c81cd591dc5ac774a80f55530a87a8cd4ce9d06 (diff)
downloaduserdrake-5b688b33c4541d5b0487ed8bfe4224137b629b0e.tar
userdrake-5b688b33c4541d5b0487ed8bfe4224137b629b0e.tar.gz
userdrake-5b688b33c4541d5b0487ed8bfe4224137b629b0e.tar.bz2
userdrake-5b688b33c4541d5b0487ed8bfe4224137b629b0e.tar.xz
userdrake-5b688b33c4541d5b0487ed8bfe4224137b629b0e.zip
- use lu_start to build the opaque admin object
-rw-r--r--USER/USER.xs4
1 files changed, 1 insertions, 3 deletions
diff --git a/USER/USER.xs b/USER/USER.xs
index 6f45ecc..c294d06 100644
--- a/USER/USER.xs
+++ b/USER/USER.xs
@@ -71,7 +71,7 @@ USER::ADMIN *
Admin_new(CLASS)
char *CLASS
CODE:
- USER_ERR *error = NULL;
+ USER__ERR *error = NULL;
RETVAL = (USER__ADMIN *)lu_start(NULL, 0, NULL, NULL, lu_prompt_console_quiet, NULL, &error);
if( RETVAL == NULL ){
warn("unable to malloc USER__ADMIN");
@@ -87,9 +87,7 @@ Admin_DESTROY(self)
printf("freeing ADMIN");
if (self) {
lu_end(self);
- self = NULL;
};
- lu_ctx_free(self);
void
Admin_lookup_user_name(self, name)