NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/39215: getdevmajor()/major() types don't match
The following reply was made to PR lib/39215; it has been noted by GNATS.
From: David Holland <dholland%eecs.harvard.edu@localhost>
To: Matthias Drochner <M.Drochner%fz-juelich.de@localhost>,
gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost, dholland%eecs.harvard.edu@localhost
Subject: Re: lib/39215: getdevmajor()/major() types don't match
Date: Thu, 31 Jul 2008 16:39:19 -0400
On Thu, Jul 31, 2008 at 06:50:01PM +0000, Matthias Drochner wrote:
> dholland%eecs.harvard.edu@localhost said:
> > Probably changing major() (and minor(), for symmetry) to produce an
> > unsigned value
>
> The kernel is using int for majors and minors, and is using -1
> as special value. I'd say we should adjust getdevmajor() - it
> is NetBSD specific and used at only one place in the tree.
> (and the error check against ~0 is ugly)
Ah, I figured it was too late for that. That's definitely preferable
> I've just done a full build with the appended patch - would that
> work for you?
Yes, looks fine, thanks.
--
- David A. Holland / dholland%eecs.harvard.edu@localhost
Home |
Main Index |
Thread Index |
Old Index