Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261178AbTIVVvP (ORCPT ); Mon, 22 Sep 2003 17:51:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261188AbTIVVvP (ORCPT ); Mon, 22 Sep 2003 17:51:15 -0400 Received: from mx1.redhat.com ([66.187.233.31]:34574 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S261178AbTIVVvO (ORCPT ); Mon, 22 Sep 2003 17:51:14 -0400 Date: Mon, 22 Sep 2003 16:51:04 -0500 From: Tommy Reynolds To: Chris Friesen Cc: linux-kernel@vger.kernel.org Subject: Re: compiler warnings and syscall macros Message-Id: <20030922165104.29176e94.reynolds@redhat.com> In-Reply-To: <3F6F6B1B.9040609@nortelnetworks.com> References: <3F6F6B1B.9040609@nortelnetworks.com> Organization: Red Hat GLS X-Mailer: Sylpheed version 0.9.5 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Face: Nr)Jjr, spoke thus: > Would it hurt anything if I put in an explicit cast, like this? > > __sc_ret = (unsigned long) -1; Why not do the obvious: __sc_ret = -1UL; and use a proper constant? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/