protoize
authorKen Raeburn <raeburn@mit.edu>
Thu, 19 Feb 2004 01:37:27 +0000 (01:37 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 19 Feb 2004 01:37:27 +0000 (01:37 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16100 dc483132-0cff-0310-8789-dd5450dbe970

src/util/pty/ChangeLog
src/util/pty/cleanup.c
src/util/pty/init.c
src/util/pty/init_slave.c
src/util/pty/vhangup.c

index 041e159aa8da4715261142e0e6ad409007b41b1f..7988a86f52ee2d11dc11517d7e28b0348b527c10 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-18  Ken Raeburn  <raeburn@mit.edu>
+
+       * cleanup.c, init.c, init_slave.c, vhangup.c: Use ANSI style
+       function definitions.
+
 2003-03-03  Tom Yu  <tlyu@mit.edu>
 
        * configure.in: Delete unused ADD_DEF, probably left over from
index 650c2dc3a8c96bd3d6d19d6628c6c6c0b4d412fb..57cc796ac9249e4cb3fa1c63c844220b1c87a0e4 100644 (file)
 #include <sys/wait.h>
 #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;
index 566f102781e1fa23b9b72e9ffaae3d3004b3ee0e..b48a1f8a7947b2f5d41ac090a5cf874247c22753 100644 (file)
@@ -26,7 +26,7 @@
 #include "libpty.h"
 #include "pty-int.h"
 
-long pty_init()
+long pty_init(void)
 {
     initialize_pty_error_table();
     return 0;
index 7a04aea7619a6786e9e5216a4d4ff905752ac7f0..ce75076454c8cdb7d27ab7a127ad3d9afb0caae7 100644 (file)
@@ -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;
index 91408c7a1d434a54a42bc340c21d05bf144f6b33..292437142e6592528de7de05b2a4438c1e12ea82 100644 (file)
@@ -24,7 +24,7 @@
 #include "libpty.h"
 #include "pty-int.h"
 
-void ptyint_vhangup()
+void ptyint_vhangup(void)
 {
 #ifdef HAVE_VHANGUP
 #ifdef POSIX_SIGNALS