Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2014 21:47:47 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269741 - head/sys/boot/userboot/userboot
Message-ID:  <53e54583.2353.2c317825@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e54583.2353.2c317825>