summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-06-07 15:17:31 -0400
committerGreg Hudson <ghudson@mit.edu>2013-06-07 15:19:37 -0400
commite51c089b745161dd6e1d64998e99d065fc22377e (patch)
tree5e792dd53ed48f3c5d0a0aa78c0ce8e777f385a2 /src/util
parent4f551a7ec126c52ee1f8fea4c3954015b70987bd (diff)
downloadkrb5-e51c089b745161dd6e1d64998e99d065fc22377e.tar.gz
krb5-e51c089b745161dd6e1d64998e99d065fc22377e.tar.xz
krb5-e51c089b745161dd6e1d64998e99d065fc22377e.zip
Fix various warnings
Diffstat (limited to 'src/util')
-rw-r--r--src/util/profile/test_profile.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/util/profile/test_profile.c b/src/util/profile/test_profile.c
index ea7113daeb..6f6fcc7ac5 100644
--- a/src/util/profile/test_profile.c
+++ b/src/util/profile/test_profile.c
@@ -24,9 +24,9 @@ static void do_batchmode(profile)
{
errcode_t retval;
int argc, ret;
- char **argv, **values, **cpp;
+ char **argv, **values, *value, **cpp;
char buf[256];
- const char **names, *value;
+ const char **names, *name;
char *cmd;
int print_status;
@@ -76,11 +76,10 @@ static void do_batchmode(profile)
retval = profile_rename_section(profile, names+1,
*names);
} else if (!strcmp(cmd, "add")) {
- value = *names;
- if (strcmp(value, "NULL") == 0)
- value = NULL;
- retval = profile_add_relation(profile, names+1,
- value);
+ name = *names;
+ if (strcmp(name, "NULL") == 0)
+ name = NULL;
+ retval = profile_add_relation(profile, names+1, name);
} else if (!strcmp(cmd, "flush")) {
retval = profile_flush(profile);
} else {
@@ -116,8 +115,7 @@ int main(argc, argv)
{
profile_t profile;
long retval;
- char **values, **cpp;
- const char *value;
+ char **values, *value, **cpp;
const char **names;
char *cmd;
int print_value = 0;