Subject: Re: current build fails
To: NetBSD Current Users <current-users@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: current-users
Date: 12/05/2003 23:52:50
On Fri, Dec 05, 2003 at 02:12:06PM -0800, Greywolf wrote:
> 
> (/sys/)kern/disk_subr.c: 494: control reaches end of non-void-returning
> function

I suppose yamt meant:

-	if (sortby == BUFQ_SORT_CYLINDER && bp->b_cylinder < bq->b_cylinder)
-		return 1;
+	if (sortby == BUFQ_SORT_CYLINDER && bp->b_cylinder != bq->b_cylinder)
		return bp->b_cylinder < bq->b_cylinder;

-	if (bp->b_rawblkno < bq->b_rawblkno)
-		return 1;
+	return bp->b_rawblkno < bq->b_rawblkno;

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)