From: Ezra Peisach Date: Mon, 3 Jul 2000 15:02:45 +0000 (+0000) Subject: * test_ss.c (main): Change usage of ss_listen to agree with X-Git-Tag: krb5-1.3-alpha1~2015 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b274f52bbf1865eb546a4d1c27e5b6776b9cc73e;p=krb5.git * test_ss.c (main): Change usage of ss_listen to agree with prototype. * ss.h: Add prototype for ss_listen() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12522 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ss/ChangeLog b/src/util/ss/ChangeLog index 475549aaf..6118dff59 100644 --- a/src/util/ss/ChangeLog +++ b/src/util/ss/ChangeLog @@ -1,3 +1,10 @@ +2000-07-03 Ezra Peisach + + * test_ss.c (main): Change usage of ss_listen to agree with + prototype. + + * ss.h: Add prototype for ss_listen() + 2000-05-01 Nalin Dahyabhai * help.c (ss_help): Don't overflow buffers "buffer" or "buf". diff --git a/src/util/ss/ss.h b/src/util/ss/ss.h index b3a0aba0f..6e398802d 100644 --- a/src/util/ss/ss.h +++ b/src/util/ss/ss.h @@ -52,9 +52,11 @@ char *ss_name(); #ifdef __STDC__ void ss_error (int, long, char const *, ...); void ss_perror (int, long, char const *); +int ss_listen (int); #else void ss_error (); void ss_perror (); +int ss_listen (); #endif void ss_abort_subsystem(); extern ss_request_table ss_std_requests; diff --git a/src/util/ss/test_ss.c b/src/util/ss/test_ss.c index db0af6fbf..9bab95c3c 100644 --- a/src/util/ss/test_ss.c +++ b/src/util/ss/test_ss.c @@ -13,7 +13,6 @@ extern ss_request_table test_cmds; static char def_subsystem_name[5] = "test"; static char version [4] = "1.0"; -extern void ss_listen(); int main(argc, argv) int argc; @@ -85,7 +84,7 @@ int main(argc, argv) ss_perror(sci_idx, code, initial_request); } if (!quit || code) - (void) ss_listen (sci_idx, &code); + code = ss_listen (sci_idx); exit(0); }