From 50fc11e03273e52a61ed191662f1288cae7f7e4f Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 4 Aug 2000 02:51:02 +0000 Subject: [PATCH] * listen.c (ss_quit): Now returns void. Fix type of argument ARGV to fit prototype. * ss.h (ss_execute_line) [__STDC__]: Make prototype unconditional. (ss_quit): Use __SS_PROTO and return void, as with other command functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12603 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/ss/ChangeLog | 10 ++++++++++ src/util/ss/listen.c | 5 ++--- src/util/ss/ss.h | 5 ++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/util/ss/ChangeLog b/src/util/ss/ChangeLog index 2155c98ab..74a4c8942 100644 --- a/src/util/ss/ChangeLog +++ b/src/util/ss/ChangeLog @@ -1,3 +1,13 @@ +2000-08-03 Ken Raeburn + + * listen.c (ss_quit): Now returns void. Fix type of argument ARGV + to fit prototype. + + * ss.h (ss_execute_line) [__STDC__]: Make prototype + unconditional. + (ss_quit): Use __SS_PROTO and return void, as with other + command functions. + 2000-08-02 Ezra Peisach * requests.c (DECLARE): Fix prototype for dispatch functions to diff --git a/src/util/ss/listen.c b/src/util/ss/listen.c index e1ab6ad84..ae9700757 100644 --- a/src/util/ss/listen.c +++ b/src/util/ss/listen.c @@ -159,12 +159,11 @@ void ss_abort_subsystem(sci_idx, code) } -int ss_quit(argc, argv, sci_idx, infop) +void ss_quit(argc, argv, sci_idx, infop) int argc; - char **argv; + char const * const *argv; int sci_idx; pointer infop; { ss_abort_subsystem(sci_idx, 0); - return 0; } diff --git a/src/util/ss/ss.h b/src/util/ss/ss.h index 7920115dc..b2fd21f00 100644 --- a/src/util/ss/ss.h +++ b/src/util/ss/ss.h @@ -47,6 +47,7 @@ typedef struct _ss_rp_options { /* DEFAULT VALUES */ void ss_help __SS_PROTO; void ss_list_requests __SS_PROTO; +void ss_quit __SS_PROTO; char *ss_current_request(); #ifdef __STDC__ char *ss_name(int); @@ -63,8 +64,7 @@ void ss_set_prompt(int, char *); char *ss_get_prompt(int); void ss_add_request_table(int, ss_request_table *, int, int *); void ss_delete_request_table(int, ss_request_table *, int *); -int ss_execute_line PROTOTYPE((int, char*)); -int ss_quit PROTOTYPE((int, char**, int, pointer)); +int ss_execute_line (int, char*); #else char *ss_name(); void ss_error (); @@ -81,7 +81,6 @@ char *ss_get_prompt(); void ss_add_request_table(); void ss_delete_request_table(); int ss_execute_line(); -int ss_quit(); #endif extern ss_request_table ss_std_requests; #endif /* _ss_h */ -- 2.26.2