summaryrefslogtreecommitdiffstats
path: root/usr.sbin/makefs
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2017-08-31 12:03:02 +0000
committerotto <otto@openbsd.org>2017-08-31 12:03:02 +0000
commit3025e2fb663eb465f33048956005c5bc9855a64c (patch)
treecdcabf261d00a2017d2cfd6f4db2d051ec12a642 /usr.sbin/makefs
parentignoredups implementation quirk (diff)
downloadwireguard-openbsd-3025e2fb663eb465f33048956005c5bc9855a64c.tar.xz
wireguard-openbsd-3025e2fb663eb465f33048956005c5bc9855a64c.zip
assorted warning fixes; ok millert@
Diffstat (limited to 'usr.sbin/makefs')
-rw-r--r--usr.sbin/makefs/msdos/msdosfs_lookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/makefs/msdos/msdosfs_lookup.c b/usr.sbin/makefs/msdos/msdosfs_lookup.c
index 87c8ca0ba77..33e1bd9bb4e 100644
--- a/usr.sbin/makefs/msdos/msdosfs_lookup.c
+++ b/usr.sbin/makefs/msdos/msdosfs_lookup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_lookup.c,v 1.2 2016/10/22 22:20:24 natano Exp $ */
+/* $OpenBSD: msdosfs_lookup.c,v 1.3 2017/08/31 12:03:02 otto Exp $ */
/* $NetBSD: msdosfs_lookup.c,v 1.35 2016/01/30 09:59:27 mlelstv Exp $ */
/*-
@@ -133,7 +133,7 @@ createde(struct denode *dep, struct denode *ddep, struct denode **depp, struct c
*/
if (ddep->de_fndcnt > 0) {
u_int8_t chksum = winChksum(ndep->deName);
- const u_char *un = (const u_char *)cnp->cn_nameptr;
+ u_char *un = cnp->cn_nameptr;
int unlen = cnp->cn_namelen;
u_long xhavecnt;