Module Name:    src
Committed By:   mlelstv
Date:           Mon Nov 17 07:13:42 UTC 2014

Modified Files:
        src/sbin/gpt: gpt.c

Log Message:
handle constness


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sbin/gpt/gpt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/gpt/gpt.c
diff -u src/sbin/gpt/gpt.c:1.37 src/sbin/gpt/gpt.c:1.38
--- src/sbin/gpt/gpt.c:1.37	Mon Nov 17 07:11:18 2014
+++ src/sbin/gpt/gpt.c	Mon Nov 17 07:13:42 2014
@@ -35,7 +35,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: gpt.c,v 1.37 2014/11/17 07:11:18 mlelstv Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.38 2014/11/17 07:13:42 mlelstv Exp $");
 #endif
 
 #include <sys/param.h>
@@ -563,7 +563,8 @@ gpt_open(const char *dev)
 
 	mode = readonly ? O_RDONLY : O_RDWR|O_EXCL;
 
-	device_arg = device_name = dev;
+	device_arg = dev;
+	device_name = __UNCONST(device_arg);
 	fd = opendisk(dev, mode, device_path, sizeof(device_path), 0);
 	if (fd == -1)
 		return -1;

Reply via email to