Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/lib/libc/gen Pull up revision 1.22 (requested by lukem in...



details:   https://anonhg.NetBSD.org/src/rev/3fc61d0985d8
branches:  netbsd-3
changeset: 576485:3fc61d0985d8
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jul 05 13:48:12 2005 +0000

description:
Pull up revision 1.22 (requested by lukem in ticket #528):
make sure ty_class is cleared on each entry.

diffstat:

 lib/libc/gen/getttyent.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 825535bf1246 -r 3fc61d0985d8 lib/libc/gen/getttyent.c
--- a/lib/libc/gen/getttyent.c  Tue Jul 05 13:45:47 2005 +0000
+++ b/lib/libc/gen/getttyent.c  Tue Jul 05 13:48:12 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getttyent.c,v 1.21 2004/11/10 23:59:06 christos Exp $  */
+/*     $NetBSD: getttyent.c,v 1.21.2.1 2005/07/05 13:48:12 tron Exp $  */
 
 /*
  * Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)getttyent.c        8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: getttyent.c,v 1.21 2004/11/10 23:59:06 christos Exp $");
+__RCSID("$NetBSD: getttyent.c,v 1.21.2.1 2005/07/05 13:48:12 tron Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -120,6 +120,7 @@
        }
        tty.ty_status = 0;
        tty.ty_window = NULL;
+       tty.ty_class = NULL;
 
 #define        scmp(e) !strncmp(p, e, sizeof(e) - 1) && (isspace((unsigned char) p[sizeof(e) - 1]) || p[sizeof(e) - 1] == '\0')
 #define        vcmp(e) !strncmp(p, e, sizeof(e) - 1) && p[sizeof(e) - 1] == '='



Home | Main Index | Thread Index | Old Index