NetBSD Problem Report #7994

Received: (qmail 8226 invoked from network); 14 Jul 1999 21:36:32 -0000
Message-Id: <E114VWz-0007p4-00@decomino.localnet>
Date: Wed, 14 Jul 1999 20:21:29 +0000
From: Joseph Myers <jsm28@cam.ac.uk>
Reply-To: Joseph Myers <jsm28@cam.ac.uk>
To: gnats-bugs@gnats.netbsd.org
Cc: Joseph Myers <jsm28@cam.ac.uk>
Subject: [PATCH] Wump const fix
X-Send-Pr-Version: 3.95

>Number:         7994
>Category:       bin
>Synopsis:       [PATCH] Wump const fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 14 14:50:04 +0000 1999
>Closed-Date:    Wed Jul 14 22:49:25 +0000 1999
>Last-Modified:  Wed Jul 14 22:49:52 +0000 1999
>Originator:     Joseph S. Myers
>Release:        NetBSD-current of 1999-06-28
>Organization:
Trinity College, University of Cambridge, UK
>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
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hubertf 
State-Changed-When: Wed Jul 14 15:49:25 PDT 1999 
State-Changed-Why:  
Fix applied, thanks! 


- Hubert 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.