From owner-svn-src-head@FreeBSD.ORG Fri Aug 8 21:47:47 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C32A0293 for ; Fri, 8 Aug 2014 21:47:47 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9333E21D8 for ; Fri, 8 Aug 2014 21:47:47 +0000 (UTC) Received: from sbruno (uid 1179) (envelope-from sbruno@FreeBSD.org) id 2353 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Fri, 08 Aug 2014 21:47:47 +0000 From: Sean Bruno Date: Fri, 8 Aug 2014 21:47:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269741 - head/sys/boot/userboot/userboot X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e54583.2353.2c317825@svn.freebsd.org> X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2014 21:47:47 -0000 Author: sbruno Date: Fri Aug 8 21:47:47 2014 New Revision: 269741 URL: http://svnweb.freebsd.org/changeset/base/269741 Log: Quiesce warning about discarding a const qualifier in assignement. Phabric: https://phabric.freebsd.org/D445 Reviewed by: neel Modified: head/sys/boot/userboot/userboot/devicename.c Modified: head/sys/boot/userboot/userboot/devicename.c ============================================================================== --- head/sys/boot/userboot/userboot/devicename.c Fri Aug 8 21:27:33 2014 (r269740) +++ head/sys/boot/userboot/userboot/devicename.c Fri Aug 8 21:47:47 2014 (r269741) @@ -91,7 +91,7 @@ userboot_parsedev(struct disk_devdesc ** struct disk_devdesc *idev; struct devsw *dv; int i, unit, err; - char *cp; + const char *cp; const char *np; /* minimum length check */ @@ -126,7 +126,7 @@ userboot_parsedev(struct disk_devdesc ** unit = 0; if (*np && (*np != ':')) { - unit = strtol(np, &cp, 0); /* get unit number if present */ + unit = strtol(np, (char **)&cp, 0); /* get unit number if present */ if (cp == np) { err = EUNIT; goto fail;