Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit _rl_qsort_string_compare(): Fix casts. This mak...
details: https://anonhg.NetBSD.org/src/rev/d367b7b6aa94
branches: trunk
changeset: 525259:d367b7b6aa94
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Apr 09 01:57:34 2002 +0000
description:
_rl_qsort_string_compare(): Fix casts. This makes gcc 3.2 happy,
and also allows both LINTED comments to be removed.
diffstat:
lib/libedit/readline.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r ffc99c467177 -r d367b7b6aa94 lib/libedit/readline.c
--- a/lib/libedit/readline.c Tue Apr 09 01:55:48 2002 +0000
+++ b/lib/libedit/readline.c Tue Apr 09 01:57:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: readline.c,v 1.21 2002/03/18 16:20:36 christos Exp $ */
+/* $NetBSD: readline.c,v 1.22 2002/04/09 01:57:34 thorpej Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include "config.h"
#if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.21 2002/03/18 16:20:36 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.22 2002/04/09 01:57:34 thorpej Exp $");
#endif /* not lint && not SCCSID */
#include <sys/types.h>
@@ -1374,10 +1374,8 @@
_rl_qsort_string_compare(i1, i2)
const void *i1, *i2;
{
- /* LINTED const castaway */
- const char *s1 = ((const char **)i1)[0];
- /* LINTED const castaway */
- const char *s2 = ((const char **)i2)[0];
+ const char *s1 = ((const char * const *)i1)[0];
+ const char *s2 = ((const char * const *)i2)[0];
return strcasecmp(s1, s2);
}
Home |
Main Index |
Thread Index |
Old Index