svn commit: r269741 - head/sys/boot/userboot/userboot

Sean Bruno sbruno at FreeBSD.org
Fri Aug 8 21:47:47 UTC 2014


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;


More information about the svn-src-all mailing list