diff options
author | Richard Basch <probe@mit.edu> | 1997-02-20 06:13:01 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1997-02-20 06:13:01 +0000 |
commit | 0735033341110014612ec43ed56ded2c9db381fb (patch) | |
tree | 91a827d7bf887e8f8db638eb4e714ff545b6dbe9 /src/kadmin/passwd | |
parent | 1c8a238f9c7d0292584391a800f8140b7351c750 (diff) | |
download | krb5-0735033341110014612ec43ed56ded2c9db381fb.tar.gz krb5-0735033341110014612ec43ed56ded2c9db381fb.tar.xz krb5-0735033341110014612ec43ed56ded2c9db381fb.zip |
kpasswd.c: Removed unneeded call to krb5_init_ets and unused #define
tty_kpasswd.c: Don't add a meaningless local abstraction
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9922 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/passwd')
-rw-r--r-- | src/kadmin/passwd/kpasswd.c | 3 | ||||
-rw-r--r-- | src/kadmin/passwd/tty_kpasswd.c | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/kadmin/passwd/kpasswd.c b/src/kadmin/passwd/kpasswd.c index 48cb4ccc59..b56292e893 100644 --- a/src/kadmin/passwd/kpasswd.c +++ b/src/kadmin/passwd/kpasswd.c @@ -13,7 +13,6 @@ static char rcsid[] = "$Id$"; #include "kpasswd_strings.h" #define string_text error_message -#define initialize_kpasswd_strings initialize_kpws_error_table #include <stdio.h> #include <pwd.h> @@ -96,8 +95,6 @@ kpasswd(context, argc, argv) /*NOTREACHED*/ } - krb5_init_ets(context); - /************************************ * Get principal name to change * ************************************/ diff --git a/src/kadmin/passwd/tty_kpasswd.c b/src/kadmin/passwd/tty_kpasswd.c index 6d865a020f..a7321516d9 100644 --- a/src/kadmin/passwd/tty_kpasswd.c +++ b/src/kadmin/passwd/tty_kpasswd.c @@ -13,7 +13,6 @@ static char rcsid[] = "$Id$"; #include "kpasswd_strings.h" #define string_text error_message -#define initialize_kpasswd_strings initialize_kpws_error_table #include <stdio.h> #include <pwd.h> @@ -63,14 +62,14 @@ main(argc, argv) krb5_context context; int retval; - initialize_kpasswd_strings(); - whoami = (whoami = strrchr(argv[0], '/')) ? whoami + 1 : argv[0]; if (retval = krb5_init_context(&context)) { com_err(whoami, retval, "initializing krb5 context"); exit(retval); } + initialize_kpws_error_table(); + retval = kpasswd(context, argc, argv); if (!retval) |