From owner-cvs-all Sun Oct 28 18:12: 4 2001 Delivered-To: cvs-all@freebsd.org Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by hub.freebsd.org (Postfix) with ESMTP id D50EE37B401; Sun, 28 Oct 2001 18:11:57 -0800 (PST) Received: from remote (mjacob.rdsl.lmi.net [204.182.55.51]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id f9T2BtH14602; Sun, 28 Oct 2001 18:11:55 -0800 (PST) (envelope-from mjacob@feral.com) Date: Sun, 28 Oct 2001 18:11:55 -0800 (PST) From: Matthew Jacob X-X-Sender: Reply-To: To: Matthew Dillon Cc: , Subject: Re: cvs commit: src/sys/dev/streams streams.c In-Reply-To: <200110290146.f9T1ks130312@apollo.backplane.com> Message-ID: <20011028181033.H18117-100000@remote> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yes, I know. I actually looked at it myself a while back. I'm not sure in this case whether the actual dev should be a dev_t or not- the streams stuff is in a wierd state because it's uncleanly strewn between a dev set of files and compat files. But the point is that I don't believe this cleans it up on alpha. Oh, well, I'll get it if I see it. On Sun, 28 Oct 2001, Matthew Dillon wrote: > > : > : > :I don't think that this works. > :Isn't dev_t: > : > : typedef struct specinfo *dev_t; > : > :So, clearly attempts to compile this on an alpha with the cast will just > :whine because you're coercing a pointer to an int half the size of the > :pointer, no? > : > > I dunno. This is the error: > > FreeBSD/FreeBSD-current/src/sys/modules/streams/../../dev/streams/streams.c: In function `svr4_delete_socket': > /FreeBSD/FreeBSD-current/src/sys/modules/streams/../../dev/streams/streams.c:392: warning: int format, dev_t arg (arg 4) > > I just cast it to what the printf format arg was already expecting. > It's just a debugging printf anyway. > > -Matt > Matthew Dillon > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message