From: Ezra Peisach Date: Mon, 4 Jun 2001 15:58:40 +0000 (+0000) Subject: * krlogin.c: Always provide prototype for setsignal and not if X-Git-Tag: krb5-1.3-alpha1~1491 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ead08e9064fe8db3dee23b8489e719d997521264;p=krb5.git * krlogin.c: Always provide prototype for setsignal and not if __STDC__ is defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13264 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 6d205c1aa..4ecd9503f 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +2001-06-04 Ezra Peisach + + * krlogin.c: Always provide prototype for setsignal and not if + __STDC__ is defined. + 2001-06-01 Ezra Peisach * login.c: Add braces around initializers. Cleanup assignments in diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c index 28103bb67..a4f6fb8c8 100644 --- a/src/appl/bsd/krlogin.c +++ b/src/appl/bsd/krlogin.c @@ -261,9 +261,7 @@ krb5_sigtype sigwinch KRB5_PROTOTYPE((int)); int server_message KRB5_PROTOTYPE((int)); void oob KRB5_PROTOTYPE((void)); krb5_sigtype lostpeer KRB5_PROTOTYPE((int)); -#if __STDC__ -void setsignal(int sig, krb5_sigtype (*act)()); -#endif +void setsignal KRB5_PROTOTYPE((int sig, krb5_sigtype (*act)())); static int read_wrapper(int fd, char *buf, int size, int *got_esc); void try_normal(char **); static void mode(int); @@ -274,7 +272,7 @@ static void doit(sigset_t *); static int reader(int); static void doit(int); #endif -static int control(unsigned char *, int); +static int control(char *, int); static void sendwindow(void); static void stop(int), echo(int); static void writer(void), done(int); @@ -1498,7 +1496,7 @@ void oob() client. */ static int control(cp, n) - unsigned char *cp; + char *cp; int n; { if ((n >= 5) && (cp[2] == 'o') && (cp[3] == 'o')) {