Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib add a const castaway lint comment.
details: https://anonhg.NetBSD.org/src/rev/9c809c78236c
branches: trunk
changeset: 472608:9c809c78236c
user: christos <christos%NetBSD.org@localhost>
date: Mon May 03 15:34:05 1999 +0000
description:
add a const castaway lint comment.
diffstat:
lib/libc/stdlib/tsearch.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 52623bf912df -r 9c809c78236c lib/libc/stdlib/tsearch.c
--- a/lib/libc/stdlib/tsearch.c Mon May 03 15:32:13 1999 +0000
+++ b/lib/libc/stdlib/tsearch.c Mon May 03 15:34:05 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tsearch.c,v 1.1 1999/02/22 10:33:16 christos Exp $ */
+/* $NetBSD: tsearch.c,v 1.2 1999/05/03 15:34:05 christos Exp $ */
/*
* Tree search generalized from Knuth (6.2.2) Algorithm T just like
@@ -13,7 +13,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: tsearch.c,v 1.1 1999/02/22 10:33:16 christos Exp $");
+__RCSID("$NetBSD: tsearch.c,v 1.2 1999/05/03 15:34:05 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#define _SEARCH_PRIVATE
@@ -47,6 +47,7 @@
q = malloc(sizeof(node_t)); /* T5: key not found */
if (q != 0) { /* make new node */
*rootp = q; /* link new node to old */
+ /* LINTED const castaway ok */
q->key = (void *)vkey; /* initialize new node */
q->llink = q->rlink = NULL;
}
Home |
Main Index |
Thread Index |
Old Index