diff options
Diffstat (limited to 'USER')
-rw-r--r-- | USER/USER.xs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/USER/USER.xs b/USER/USER.xs index 23d5288..2299131 100644 --- a/USER/USER.xs +++ b/USER/USER.xs @@ -31,7 +31,7 @@ convert_value_array_list(register SV **sp, GValueArray *array) { for (i = 0; (array != NULL) && (i < array->n_values); i++) { value = g_value_array_get_nth(array, i); /* If the item is a G_TYPE_LONG, add it as a double. */ - if (G_VALUE_HOLDS_LONG(value)) { + if (G_VALUE_HOLDS_LONG(value)) { l = g_value_get_long(value); XPUSHs(sv_2mortal(newSViv(l))); } else if (G_VALUE_HOLDS_STRING(value)) { @@ -100,9 +100,9 @@ Admin_lookup_user_name(self, name) char *name PPCODE: USER__ENT *ent; - USER__ERR *err; + USER__ERR *error = NULL; ent = lu_ent_new(); - if (lu_user_lookup_name(self, name, ent, &err)) { + if (lu_user_lookup_name(self, name, ent, &error)) { XPUSHs(sv_2mortal(newSViv(ent))); } else { lu_ent_free(ent); @@ -114,7 +114,7 @@ Admin_users_enumerate_full(self, pattern) char *pattern CODE: int c; - USER__ERR *error; + USER__ERR *error = NULL; RETVAL = (AV*)sv_2mortal((SV*)newAV()); GPtrArray *accounts; accounts = lu_users_enumerate_full(self, pattern, &error); @@ -133,11 +133,11 @@ Admin_groups_enumerate_full(self, pattern) char *pattern PREINIT: int c; - USER__ERR *error; + USER__ERR *error = NULL; CODE: RETVAL = (AV*)sv_2mortal((SV*)newAV()); GPtrArray *accounts; - accounts=lu_groups_enumerate_full(self, pattern, &error); + accounts = lu_groups_enumerate_full(self, pattern, &error); for (c = 0; (accounts != NULL) && (c < accounts->len); c++) { if( av_store( RETVAL, c, newSViv(g_ptr_array_index(accounts, c)) ) == NULL ){ warn("XS_UsersEnumerateFull: failed to store elems"); @@ -226,5 +226,5 @@ MODULE = USER PACKAGE = USER PREFIX = User_ void User_read_config_files() CODE: - /*force read of /etc/sysconfig/userdrake*/ + /*force read of /etc/sysconfig/userdrakefilter*/ |