remove trailing whitespace
This commit is contained in:
@@ -86,7 +86,7 @@ kswitch(struct kswitch_options *opt, int argc, char **argv)
|
||||
while (krb5_cc_cache_next(kcc_context, cursor, &id) == 0) {
|
||||
krb5_principal p;
|
||||
char num[10];
|
||||
|
||||
|
||||
ret = krb5_cc_get_principal(kcc_context, id, &p);
|
||||
if (ret)
|
||||
continue;
|
||||
@@ -98,7 +98,7 @@ kswitch(struct kswitch_options *opt, int argc, char **argv)
|
||||
rtbl_add_column_entry(ct, "", num);
|
||||
rtbl_add_column_entry(ct, "Principal", name);
|
||||
free(name);
|
||||
|
||||
|
||||
ids = erealloc(ids, (len + 1) * sizeof(ids[0]));
|
||||
ids[len] = id;
|
||||
len++;
|
||||
@@ -115,7 +115,7 @@ kswitch(struct kswitch_options *opt, int argc, char **argv)
|
||||
krb5_errx(kcc_context, 1, "Cache number '%s' is invalid", name);
|
||||
if (i > len)
|
||||
krb5_errx(kcc_context, 1, "Cache number '%s' is too large", name);
|
||||
|
||||
|
||||
id = ids[i - 1];
|
||||
ids[i - 1] = NULL;
|
||||
} else
|
||||
@@ -147,15 +147,15 @@ kswitch(struct kswitch_options *opt, int argc, char **argv)
|
||||
ops = krb5_cc_get_prefix_ops(kcc_context, opt->type_string);
|
||||
if (ops == NULL)
|
||||
krb5_err(kcc_context, 1, 0, "krb5_cc_get_prefix_ops");
|
||||
|
||||
|
||||
asprintf(&str, "%s:%s", ops->prefix, opt->cache_string);
|
||||
if (str == NULL)
|
||||
krb5_errx(kcc_context, 1, N_("out of memory", ""));
|
||||
|
||||
|
||||
ret = krb5_cc_resolve(kcc_context, str, &id);
|
||||
if (ret)
|
||||
krb5_err(kcc_context, 1, ret, "krb5_cc_resolve: %s", str);
|
||||
|
||||
|
||||
free(str);
|
||||
} else {
|
||||
krb5_errx(kcc_context, 1, "missing option for kswitch");
|
||||
|
Reference in New Issue
Block a user