FreeBSD Bugzilla – Attachment 131876 Details for
Bug 176052
[boot] [patch] libi386: Do not unnecessarily cast away const
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-libi386-Do-not-unnecessarily-cast-away-const.patch
0001-libi386-Do-not-unnecessarily-cast-away-const.patch (text/plain), 1.02 KB, created by
Christoph Mallon
on 2013-02-12 08:20:00 UTC
(
hide
)
Description:
0001-libi386-Do-not-unnecessarily-cast-away-const.patch
Filename:
MIME Type:
Creator:
Christoph Mallon
Created:
2013-02-12 08:20:00 UTC
Size:
1.02 KB
patch
obsolete
>From fbbcc10d3002e3a0a8eb36582443aa4bba8969f6 Mon Sep 17 00:00:00 2001 >From: Christoph Mallon <christoph.mallon@gmx.de> >Date: Tue, 15 Jan 2013 11:09:09 +0100 >Subject: [PATCH] libi386: Do not unnecessarily cast away const. > >--- > sys/boot/i386/libi386/devicename.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > >diff --git a/sys/boot/i386/libi386/devicename.c b/sys/boot/i386/libi386/devicename.c >index c7705d7..ed2e1c0 100644 >--- a/sys/boot/i386/libi386/devicename.c >+++ b/sys/boot/i386/libi386/devicename.c >@@ -127,17 +127,16 @@ i386_parsedev(struct i386_devdesc **dev, const char *devspec, const char **path) > err = EUNIT; > goto fail; > } >- } else { >- cp = (char *)np; >+ np = cp; > } >- if (*cp && (*cp != ':')) { >+ if (*np && (*np != ':')) { > err = EINVAL; > goto fail; > } > > idev->d_unit = unit; > if (path != NULL) >- *path = (*cp == 0) ? cp : cp + 1; >+ *path = (*np == '\0') ? np : np + 1; > break; > case DEVT_ZFS: > err = zfs_parsedev((struct zfs_devdesc *)idev, np, path); >-- >1.8.1.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 176052
: 131876