[1276] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5b4pl3: appl/bsd/krlogind.c: redefines, signal-handler types

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Fri Mar 24 14:10:27 1995

From: "Jonathan I. Kamens" <jik@cam.ov.com>
Date: Fri, 24 Mar 1995 14:13:18 -0500
To: krb5-bugs@MIT.EDU

1) Linux defines the TIOCPKT_* symbols in termios.h, so krlogind.c
should check if they're already defined and only define them if they
aren't.

2) Should use krb5_sigtype instead of hard-coding int.

--- krlogind.c	1995/03/21 06:39:42	1.17
+++ krlogind.c	1995/03/24 19:10:49
@@ -178,9 +178,11 @@
 
 #ifndef HAVE_SYS_PTYVAR_H
 /* These values are over-the-wire protocol, *not* local values */
+#ifndef TIOCPKT_NOSTOP
 #define TIOCPKT_NOSTOP          0x10
 #define TIOCPKT_DOSTOP          0x20
 #define TIOCPKT_FLUSHWRITE      0x02
+#endif /* defined(TIOCPKT_NOSTOP) */
 #else
 /* but solaris actually uses packet mode, so the real macros are needed too */
 #include <sys/ptyvar.h>
@@ -540,7 +542,7 @@
 #endif
 
 int	child;
-int	cleanup();
+krb5_sigtype	cleanup();
 int	netf;
 char	line[MAXPATHLEN];
 extern	char	*inet_ntoa();
@@ -1076,7 +1078,7 @@
 
 
 
-int cleanup()
+krb5_sigtype cleanup()
 {
     char *p;
     

home help back first fref pref prev next nref lref last post