From owner-freebsd-current@FreeBSD.ORG Sun Jun 21 21:53:02 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A9B21065670 for ; Sun, 21 Jun 2009 21:53:02 +0000 (UTC) (envelope-from pawel.worach@gmail.com) Received: from mail-bw0-f215.google.com (mail-bw0-f215.google.com [209.85.218.215]) by mx1.freebsd.org (Postfix) with ESMTP id 170BB8FC1A for ; Sun, 21 Jun 2009 21:53:01 +0000 (UTC) (envelope-from pawel.worach@gmail.com) Received: by bwz11 with SMTP id 11so560841bwz.43 for ; Sun, 21 Jun 2009 14:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=YL0/FhIG0z2mNFOKPkQQzIjx/Bg05nYyqj/ogheTZX0=; b=mu2dR2GyFAsFb98sBLqQbcp5m4YEiiuTxmKNTYvRGJXB8xHhBMr+bbEz3pACKPlV+f Mbm64ELfvhZEYcyIi92QxdoSKh32y67hFv9bVOfls5lVLp8HxtvOLQWifuRyernengRc zMm8T+CUELecy4UovVJxt6rHWDR+WGyQKSMWM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=KpmJ0mSHRnVZtkxwDxNVHgzPgltEnq8bjB8fNiq3Hql+l4Ha6ViMgdZkfglSvNI/bn 25n9m2jo97N4O6Ve/wFUGYXalm3qkp/t+j15ppuLQsHarlZRgp+GLUOYX7WqfrCEC7yb M/qxi92gTa6c30cDL9s2Tk1k2ontCVPTFv9Ds= MIME-Version: 1.0 Received: by 10.204.77.81 with SMTP id f17mr5414954bkk.78.1245621181063; Sun, 21 Jun 2009 14:53:01 -0700 (PDT) Date: Sun, 21 Jun 2009 23:53:01 +0200 Message-ID: From: Pawel Worach To: current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: [patch] fix K&R int promotion warnings in sys/compat/ndis/subr_usbd.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2009 21:53:03 -0000 Hi, Here is a patch to fix the K&R function declaration to match the ANSI prototypes, done so by ANSIfying the rest of the K&R function declarations in the file. http://lev.vlakno.cz/~pwo/warn-fix/ndis-subr_usbd.diff Sample warning: /usr/src/sys/modules/ndis/../../compat/ndis/subr_usbd.c:598:13: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'uint8_t' (aka 'unsigned char') declared in a previous prototype uint8_t ifidx; ^ /usr/src/sys/modules/ndis/../../compat/ndis/subr_usbd.c:120:59: note: previous declaration is here static usb_error_t usbd_setup_endpoint_one(irp *, uint8_t, ^ -- Pawel