lower amount of shadow and const warnings

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15587 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-07-07 22:06:50 +00:00
parent 7da40a08e1
commit 5654000990
8 changed files with 39 additions and 35 deletions

View File

@@ -316,7 +316,7 @@ parse_generation(char *str, GENERATION **gen)
*/
static int
doit(const char *filename, int merge)
doit(const char *filename, int mergep)
{
krb5_error_code ret;
FILE *f;
@@ -340,7 +340,7 @@ doit(const char *filename, int merge)
return 1;
}
if(!merge)
if(!mergep)
flags |= O_CREAT | O_TRUNC;
ret = db->hdb_open(context, db, flags, 0600);
if(ret){
@@ -487,14 +487,14 @@ doit(const char *filename, int merge)
extern int local_flag;
static int
loadit(int merge, const char *name, int argc, char **argv)
loadit(int mergep, const char *name, int argc, char **argv)
{
if(!local_flag) {
krb5_warnx(context, "%s is only available in local (-l) mode", name);
return 0;
}
doit(argv[0], merge);
doit(argv[0], mergep);
return 0;
}