Subject: bin/7994: [PATCH] Wump const fix
To: None <gnats-bugs@gnats.netbsd.org>
From: Joseph Myers <jsm28@cam.ac.uk>
List: netbsd-bugs
Date: 07/14/1999 15:03:18
>Number:         7994
>Category:       bin
>Synopsis:       [PATCH] Wump const fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 14 14:50:04 1999
>Last-Modified:
>Originator:     Joseph S. Myers
>Organization:
Trinity College, University of Cambridge, UK
>Release:        NetBSD-current of 1999-06-28
>Environment:
[
System: Linux decomino 2.2.10 #1 Mon Jun 14 07:48:53 UTC 1999 i686 unknown
Architecture: i686
]
>Description:

This patch fixes a -Wcast-qual warning in wump(6).

>How-To-Repeat:

>Fix:

diff -ruN wump/wump.c wump+/wump.c
--- wump/wump.c	Wed Feb 10 12:06:56 1999
+++ wump+/wump.c	Wed Jul 14 20:18:25 1999
@@ -720,7 +720,7 @@
 int_compare(a, b)
 	const void *a, *b;
 {
-	return(*(int *)a < *(int *)b ? -1 : 1);
+	return(*(const int *)a < *(const int *)b ? -1 : 1);
 }
 
 void
>Audit-Trail:
>Unformatted: