From 6d8d37336d8215a8b920e3221ac960f6ff7bee81 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 18 May 1990 16:59:53 +0000 Subject: [PATCH] can't use 'delete' else we get conflicts on old dbm git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@890 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/aname/kdb5_anadd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/admin/aname/kdb5_anadd.c b/src/admin/aname/kdb5_anadd.c index 0b541a294..f219be5ce 100644 --- a/src/admin/aname/kdb5_anadd.c +++ b/src/admin/aname/kdb5_anadd.c @@ -46,15 +46,15 @@ char *argv[]; int optchar; extern char *optarg; extern int optind; - int delete = 0, add = 0; + int del = 0, add = 0; char *lname, *pname; extern char *krb5_lname_file; char *andbname = krb5_lname_file; while ((optchar = getopt(argc, argv, "dan:")) != EOF) { switch(optchar) { - case 'd': /* delete */ - delete++; + case 'd': /* del */ + del++; if (add) { fprintf(stderr, "only one of -a, -d\n"); usage(argv[0], 1); @@ -62,7 +62,7 @@ char *argv[]; break; case 'a': /* add */ add++; - if (delete) { + if (del) { fprintf(stderr, "only one of -a, -d\n"); usage(argv[0], 1); } @@ -76,7 +76,7 @@ char *argv[]; /*NOTREACHED*/ } } - if (!delete && !add) { + if (!del && !add) { printf("assuming you want to add\n"); add = 1; } @@ -99,7 +99,7 @@ char *argv[]; key.dptr = pname; key.dsize = strlen(pname)+1; /* include the null */ - if (delete) { + if (del) { if (dbm_delete(db, key)) { com_err(argv[0], 0, "No such entry while deleting %s from %s", pname, andbname); -- 2.26.2