NetBSD Problem Report #6783

Received: (qmail 14472 invoked from network); 10 Jan 1999 20:14:14 -0000
Message-Id: <199901102011.OAA15277@marvin.ece.utexas.edu>
Date: Sun, 10 Jan 1999 14:11:25 -0600 (CST)
From: bgrayson@ece.utexas.edu
Reply-To: bgrayson@ece.utexas.edu
To: gnats-bugs@gnats.netbsd.org
Subject: wt driver needs pointer-arith fix
X-Send-Pr-Version: 3.95

>Number:         6783
>Category:       kern
>Synopsis:       wt driver needs pointer-arith fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 10 12:20:01 +0000 1999
>Closed-Date:    Sun Jan 10 22:00:44 +0000 1999
>Last-Modified:  Sun Jan 10 22:01:01 +0000 1999
>Originator:     Brian Grayson
>Release:        Jan 9, 1999
>Organization:
	Parallel and Distributed Systems
	Electrical and Computer Engineering
	The University of Texas at Austin
>Environment:

>Description:
	wt.c, the Wangtek tape-drive driver, does not compile
	with -Wpointer-arith.
>How-To-Repeat:
>Fix:
	This patch allows compiles to complete.  I'm not sure if
	the code I wrote is the way things should be done, so
	feel free to modify it.
--- wt.c.dist	Sun Jan 10 13:58:10 1999
+++ wt.c	Sun Jan 10 14:00:23 1999
@@ -732,7 +732,7 @@

 	if (sc->dmacount < sc->dmatotal) {
 		/* Continue I/O. */
-		sc->dmavaddr += sc->bsize;
+		sc->dmavaddr = (void *)((char *)sc->dmavaddr + sc->bsize);
 		wtdma(sc);
 		WTDBPRINT(("continue i/o, %d\n", sc->dmacount));
 		return 1;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: augustss 
State-Changed-When: Sun Jan 10 14:00:44 PST 1999 
State-Changed-Why:  
Patch applied. 
>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.