From f1080518437c31c3276dea6d78c392a60928eca8 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 19 Feb 2004 01:37:27 +0000 Subject: [PATCH] protoize git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16100 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/pty/ChangeLog | 5 +++++ src/util/pty/cleanup.c | 8 ++++---- src/util/pty/init.c | 2 +- src/util/pty/init_slave.c | 3 +-- src/util/pty/vhangup.c | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index 041e159aa..7988a86f5 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,8 @@ +2004-02-18 Ken Raeburn + + * cleanup.c, init.c, init_slave.c, vhangup.c: Use ANSI style + function definitions. + 2003-03-03 Tom Yu * configure.in: Delete unused ADD_DEF, probably left over from diff --git a/src/util/pty/cleanup.c b/src/util/pty/cleanup.c index 650c2dc3a..57cc796ac 100644 --- a/src/util/pty/cleanup.c +++ b/src/util/pty/cleanup.c @@ -27,10 +27,10 @@ #include #endif -long pty_cleanup (slave, pid, update_utmp) - char *slave; - int pid; /* May be zero for unknown.*/ - int update_utmp; +long pty_cleanup (char *slave, + /* May be zero for unknown. */ + int pid, + int update_utmp) { #ifdef VHANG_LAST int retval, fd; diff --git a/src/util/pty/init.c b/src/util/pty/init.c index 566f10278..b48a1f8a7 100644 --- a/src/util/pty/init.c +++ b/src/util/pty/init.c @@ -26,7 +26,7 @@ #include "libpty.h" #include "pty-int.h" -long pty_init() +long pty_init(void) { initialize_pty_error_table(); return 0; diff --git a/src/util/pty/init_slave.c b/src/util/pty/init_slave.c index 7a04aea76..ce7507645 100644 --- a/src/util/pty/init_slave.c +++ b/src/util/pty/init_slave.c @@ -43,8 +43,7 @@ static char *push_list[] = { -long pty_initialize_slave (fd) - int fd; +long pty_initialize_slave (int fd) { #if defined(POSIX_TERMIOS) && !defined(ultrix) struct termios new_termio; diff --git a/src/util/pty/vhangup.c b/src/util/pty/vhangup.c index 91408c7a1..292437142 100644 --- a/src/util/pty/vhangup.c +++ b/src/util/pty/vhangup.c @@ -24,7 +24,7 @@ #include "libpty.h" #include "pty-int.h" -void ptyint_vhangup() +void ptyint_vhangup(void) { #ifdef HAVE_VHANGUP #ifdef POSIX_SIGNALS -- 2.26.2