diff options
Diffstat (limited to 'src/kadmin/cli/ss_wrapper.c')
-rw-r--r-- | src/kadmin/cli/ss_wrapper.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/kadmin/cli/ss_wrapper.c b/src/kadmin/cli/ss_wrapper.c index f73ba82..93cf1dc 100644 --- a/src/kadmin/cli/ss_wrapper.c +++ b/src/kadmin/cli/ss_wrapper.c @@ -1,3 +1,4 @@ +/* -*- mode: c; indent-tabs-mode: nil -*- */ /* * Copyright 1994 by the Massachusetts Institute of Technology. * All Rights Reserved. @@ -35,9 +36,8 @@ extern ss_request_table kadmin_cmds; extern int exit_status; extern char *whoami; -int main(argc, argv) - int argc; - char *argv[]; +int +main(int argc, char *argv[]) { char *request; krb5_error_code retval; @@ -46,18 +46,17 @@ int main(argc, argv) whoami = ((whoami = strrchr(argv[0], '/')) ? whoami+1 : argv[0]); request = kadmin_startup(argc, argv); - sci_idx = ss_create_invocation(whoami, "5.0", (char *) NULL, - &kadmin_cmds, &retval); + sci_idx = ss_create_invocation(whoami, "5.0", NULL, &kadmin_cmds, &retval); if (retval) { - ss_perror(sci_idx, retval, "creating invocation"); - exit(1); + ss_perror(sci_idx, retval, "creating invocation"); + exit(1); } if (request) { - code = ss_execute_line(sci_idx, request); - if (code != 0) { - ss_perror(sci_idx, code, request); - exit_status++; - } + code = ss_execute_line(sci_idx, request); + if (code != 0) { + ss_perror(sci_idx, code, request); + exit_status++; + } } else retval = ss_listen(sci_idx); return quit() ? 1 : exit_status; |