From: Mark Eichin Date: Sun, 14 Aug 1994 04:37:59 +0000 (+0000) Subject: lint X-Git-Tag: krb5-1.0-beta4.3~188 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fdfd91f9cf83e9e6e5356b8aab623914679d13e2;p=krb5.git lint unused vars git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4135 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/ksu/authorization.c b/src/clients/ksu/authorization.c index 2561d267b..d4a5fc90c 100644 --- a/src/clients/ksu/authorization.c +++ b/src/clients/ksu/authorization.c @@ -74,7 +74,6 @@ krb5_error_code krb5_authorization(principal, luser, local_realm_name, char **out_fcmd; { struct passwd *pwd; - char * kuser; char *princname; int k5login_flag =0; int k5users_flag =0; @@ -238,7 +237,7 @@ krb5_error_code k5login_lookup (fp, princname, found) krb5_error_code retval; char * line; -char * fprinc, *cmd; +char * fprinc; char * lp; krb5_boolean loc_found = FALSE; @@ -385,7 +384,6 @@ char * err; char ** tmp_fcmd; char * path_ptr, *path; char * lp, * tc; -krb5_boolean found = FALSE; int i=0; tmp_fcmd = (char **) calloc (MAX_CMD, sizeof(char *)); @@ -396,9 +394,6 @@ int i=0; *out_fcmd = tmp_fcmd; return TRUE; }else{ - int size; - char * cmd_path_str = ""; - /* must be either full path or just the cmd name */ if (strchr(fcmd, '/')){ err = (char *) calloc((strlen(fcmd) +200) ,sizeof(char)); diff --git a/src/clients/ksu/ccache.c b/src/clients/ksu/ccache.c index 2d66583e9..33362b5c2 100644 --- a/src/clients/ksu/ccache.c +++ b/src/clients/ksu/ccache.c @@ -58,12 +58,8 @@ krb5_ccache * cc_other; char * cc_def_name; char * cc_other_name; krb5_error_code retval=0; -krb5_cc_cursor cur; -krb5_creds creds, temp_tktq, temp_tkt; -int code= 0; krb5_creds ** cc_def_creds_arr = NULL; krb5_creds ** cc_other_creds_arr = NULL; -uid_t eff_uid, eff_gid; struct stat st_temp; cc_other = (krb5_ccache *) calloc(1, sizeof (krb5_ccache)); @@ -524,7 +520,6 @@ krb5_error_code retval=0; krb5_principal temp_principal; krb5_creds ** ccs_creds_arr = NULL; int i=0; -uid_t eff_uid, eff_gid; struct stat st_temp; ccs_name = krb5_cc_get_name(ccs); @@ -571,10 +566,8 @@ krb5_error_code krb5_store_some_creds(cc, creds_def, creds_other, prst, { int i = 0; -int j = 0; krb5_error_code retval = 0; krb5_creds ** temp_creds= NULL; -krb5_boolean cmp; krb5_boolean temp_stored = FALSE; @@ -636,12 +629,8 @@ krb5_ccache * cc_other; char * cc_def_name; char * cc_other_name; krb5_error_code retval=0; -krb5_cc_cursor cur; -krb5_creds creds, temp_tktq, temp_tkt; -int code= 0; krb5_creds ** cc_def_creds_arr = NULL; krb5_creds ** cc_other_creds_arr = NULL; -uid_t eff_uid, eff_gid; struct stat st_temp; cc_other = (krb5_ccache *) calloc(1, sizeof (krb5_ccache)); diff --git a/src/clients/ksu/heuristic.c b/src/clients/ksu/heuristic.c index 4a4de0dd9..8ca5b7140 100644 --- a/src/clients/ksu/heuristic.c +++ b/src/clients/ksu/heuristic.c @@ -43,7 +43,6 @@ krb5_error_code get_all_princ_from_file (fp, plist) krb5_error_code retval; char * line, * fprinc, * lp, ** temp_list = NULL; int count = 0, chunk_count = 1; - int i =0; if (!(temp_list = (char **) malloc( CHUNK * sizeof(char *)))){ return errno; @@ -204,9 +203,7 @@ get_authorized_princ_names(luser, cmd, princ_list) { struct passwd *pwd; - FILE *fp; - int count = 0, chunk_count = 1; - int k5login_flag =0, i=0; + int k5login_flag =0; int k5users_flag =0; FILE * login_fp, * users_fp; char ** k5login_list = NULL, ** k5users_list = NULL; @@ -330,7 +327,6 @@ krb5_error_code get_closest_principal(plist, client, found) krb5_boolean *found; { krb5_error_code retval =0; -char * client_name; krb5_principal temp_client, best_client = NULL; int i = 0, j=0, cnelem, pnelem; krb5_boolean got_one; @@ -410,10 +406,7 @@ krb5_error_code find_either_ticket (cc, client, end_server, found) { krb5_principal kdc_server; -krb5_creds tgt, tgtq; -krb5_ticket * target_tkt; krb5_error_code retval; -char * client_name; krb5_boolean temp_found = FALSE; char * cc_source_name; struct stat st_temp; @@ -457,11 +450,8 @@ krb5_error_code find_ticket (cc, client, server, found) krb5_boolean *found; { -krb5_principal kdc_server; krb5_creds tgt, tgtq; -krb5_ticket * target_tkt; krb5_error_code retval; -char * client_name; *found = FALSE; diff --git a/src/clients/ksu/krb_auth_su.c b/src/clients/ksu/krb_auth_su.c index c128d3c6c..de196966d 100644 --- a/src/clients/ksu/krb_auth_su.c +++ b/src/clients/ksu/krb_auth_su.c @@ -54,17 +54,13 @@ krb5_boolean krb5_auth_check(client_pname, hostname, options, krb5_ccache cc; int *path_passwd; { -krb5_principal client, server, temp_client; +krb5_principal client, server; krb5_creds tgt, tgtq, cred; krb5_creds **tgts = NULL; /* list of ticket granting tickets */ krb5_ticket * target_tkt; /* decrypted ticket for server */ -int default_client = 1 ; -struct passwd *pw = NULL; krb5_error_code retval =0; -char ** k5login_plist = NULL; int got_it = 0; -char * client_name; krb5_boolean zero_password; *path_passwd = 0; @@ -225,7 +221,6 @@ krb5_boolean krb5_fast_auth(client, server, target_user, cc) krb5_creds tgt, tgtq; krb5_ticket * target_tkt; krb5_error_code retval; -char * client_name; memset((char *) &tgtq, 0, sizeof(tgtq)); memset((char *) &tgt, 0, sizeof(tgt)); @@ -659,7 +654,6 @@ krb5_error_code get_best_principal(plist, client) krb5_principal *client; { krb5_error_code retval =0; -char * client_name; krb5_principal temp_client, best_client = NULL; int i = 0, nelem; diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index 3e8d5f447..b376ccd6e 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -81,7 +81,7 @@ krb5_principal client = NULL; krb5_ccache cc_target = NULL; char * cc_target_tag = NULL; char * target_user = NULL; -char * source_user, *p; +char * source_user; char * local_realm_name = NULL; krb5_ccache cc_source = NULL; @@ -92,7 +92,6 @@ char * cc_source_tag_tmp = NULL; char * cc_target_tag_tmp=NULL; char * cmd = NULL, * exec_cmd = NULL; int errflg = 0; -uid_t eff_uid, eff_gid; krb5_boolean auth_val; krb5_boolean authorization_val = FALSE; int path_passwd = 0; @@ -107,7 +106,6 @@ extern char * getpass(), *crypt(); int pargc; char ** pargv; struct stat st_temp; -int temp_debug; krb5_boolean stored = FALSE; krb5_principal kdc_server; krb5_boolean zero_password;