diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2001-06-04 15:58:40 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2001-06-04 15:58:40 +0000 |
| commit | ead08e9064fe8db3dee23b8489e719d997521264 (patch) | |
| tree | 395484737ca675ee9ae36f14229ad69ede9772c4 /src | |
| parent | 5b7b7f4f01c2a90ece0080cde9a3dde1238f3788 (diff) | |
| download | krb5-ead08e9064fe8db3dee23b8489e719d997521264.tar.gz krb5-ead08e9064fe8db3dee23b8489e719d997521264.tar.xz krb5-ead08e9064fe8db3dee23b8489e719d997521264.zip | |
* 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
Diffstat (limited to 'src')
| -rw-r--r-- | src/appl/bsd/ChangeLog | 5 | ||||
| -rw-r--r-- | src/appl/bsd/krlogin.c | 8 |
2 files changed, 8 insertions, 5 deletions
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 <epeisach@mit.edu> + + * krlogin.c: Always provide prototype for setsignal and not if + __STDC__ is defined. + 2001-06-01 Ezra Peisach <epeisach@mit.edu> * 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')) { |
