summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2013-06-28 13:07:13 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2013-06-28 13:14:46 +0200
commit1f00250b4bb711f004f5ac6375a9a232a9ddc783 (patch)
tree8dfe28fe7c0d544c36199dd66cd64a2220a7c022
parent591f0748092604300ca861b3144c53dbe9b95a01 (diff)
downloadeurephia-1f00250b4bb711f004f5ac6375a9a232a9ddc783.tar.gz
eurephia-1f00250b4bb711f004f5ac6375a9a232a9ddc783.tar.xz
eurephia-1f00250b4bb711f004f5ac6375a9a232a9ddc783.zip
Removed some stray left-over variables no longer in use
These variables where used before the XML based response in the admin API was implemented. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
-rw-r--r--eurephiadm/commands/adminaccess.c4
-rw-r--r--eurephiadm/commands/usercerts.c4
-rw-r--r--eurephiadm/commands/users.c6
3 files changed, 3 insertions, 11 deletions
diff --git a/eurephiadm/commands/adminaccess.c b/eurephiadm/commands/adminaccess.c
index 65f459b..f08cbda 100644
--- a/eurephiadm/commands/adminaccess.c
+++ b/eurephiadm/commands/adminaccess.c
@@ -243,7 +243,7 @@ int grant_revoke(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, i
xmlDoc *upd_xml = NULL, *res_xml = NULL;
xmlNode *root_n = NULL, *fmap_n = NULL;
xmlAttr *mode_a = NULL;
- char actmode = '-', *actmode_str = NULL;
+ char actmode = '-';
int i = 0, rc = 0;
int f_uid = 0, f_acl = 0, f_intf = 0;
@@ -263,10 +263,8 @@ int grant_revoke(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, i
if( (strcmp(argv[0], "--grant") == 0) || (strcmp(argv[0], "-G") == 0) ) {
actmode = 'G';
- actmode_str = "granted";
} else if( (strcmp(argv[0], "--revoke") == 0) || (strcmp(argv[0], "-R") == 0) ) {
actmode = 'R';
- actmode_str = "revoked";
}
for( i = 1; i < argc; i++ ) {
diff --git a/eurephiadm/commands/usercerts.c b/eurephiadm/commands/usercerts.c
index 3e8a820..fa352bb 100644
--- a/eurephiadm/commands/usercerts.c
+++ b/eurephiadm/commands/usercerts.c
@@ -241,7 +241,7 @@ int add_del_usercert(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cf
eurephiaRESULT *res = NULL;
int i = 0, rc = 0, actmode = 0;
char *certid = NULL, *uid = NULL, *username = NULL, *uicid = NULL,
- *actmode_str = NULL, *accessprofile = NULL, *authplugin = NULL, *authusername = NULL;
+ *accessprofile = NULL, *authplugin = NULL, *authusername = NULL;
char uid_lookup[18];
e_options addargs[] = {
@@ -262,10 +262,8 @@ int add_del_usercert(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cf
if( (strcmp(argv[0], "--add") == 0) || (strcmp(argv[0], "-A") == 0) ) {
actmode = 'A';
- actmode_str = "registered";
} else if( (strcmp(argv[0], "--delete") == 0) || (strcmp(argv[0], "-D") == 0) ) {
actmode = 'D';
- actmode_str = "deleted";
}
for( i = 1; i < argc; i++ ) {
diff --git a/eurephiadm/commands/users.c b/eurephiadm/commands/users.c
index 517a485..1e553c2 100644
--- a/eurephiadm/commands/users.c
+++ b/eurephiadm/commands/users.c
@@ -454,7 +454,7 @@ int account_activation(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *
xmlDoc *user_xml = NULL, *update_xml = NULL, *srch_xml = NULL, *tmp_xml = NULL, *res_xml = NULL;
xmlNode *user_n = NULL, *update_n = NULL, *srch_root = NULL, *tmp_n = NULL, *fmap_n = NULL;
eurephiaRESULT *res = NULL;
- char *uid_str = NULL, *activated = NULL, *deactivated = NULL, *actmode_str = NULL, *newpwd = NULL;
+ char *uid_str = NULL, *activated = NULL, *deactivated = NULL, *newpwd = NULL;
int i, actmode = 0, rc = 0, crit_set = 0;
xmlChar flags[34];
@@ -470,16 +470,12 @@ int account_activation(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *
if( (strcmp(argv[0], "--activate") == 0) || (strcmp(argv[0], "-a") == 0) ) {
actmode = 'a';
- actmode_str = "activated";
} else if( (strcmp(argv[0], "--deactivate") == 0) || (strcmp(argv[0], "-d") == 0) ) {
actmode = 'd';
- actmode_str = "deactivated";
} else if( (strcmp(argv[0], "--delete") == 0) || (strcmp(argv[0], "-D") == 0) ) {
actmode = 'D';
- actmode_str = "deleted";
} else if( (strcmp(argv[0], "--password") == 0) || (strcmp(argv[0], "-p") == 0) ) {
actmode = 'p';
- actmode_str = "updated with new password";
} else {
fprintf(stderr, "%s: System error - illegal users mode'%s'\n", MODULE, argv[0]);
return 1;