Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen make sure ty_class is cleared on each entry.
details: https://anonhg.NetBSD.org/src/rev/d54ad587ab70
branches: trunk
changeset: 580886:d54ad587ab70
user: christos <christos%NetBSD.org@localhost>
date: Sat May 14 15:43:47 2005 +0000
description:
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 ea9b44873685 -r d54ad587ab70 lib/libc/gen/getttyent.c
--- a/lib/libc/gen/getttyent.c Sat May 14 15:26:43 2005 +0000
+++ b/lib/libc/gen/getttyent.c Sat May 14 15:43:47 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.22 2005/05/14 15:43:47 christos 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.22 2005/05/14 15:43:47 christos 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