mbrfile can be const.
authorkrw <krw@openbsd.org>
Thu, 22 Jul 2021 18:54:17 +0000 (18:54 +0000)
committerkrw <krw@openbsd.org>
Thu, 22 Jul 2021 18:54:17 +0000 (18:54 +0000)
sbin/fdisk/fdisk.c

index 6e9887f..e4af093 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: fdisk.c,v 1.128 2021/07/21 12:22:54 krw Exp $ */
+/*     $OpenBSD: fdisk.c,v 1.129 2021/07/22 18:54:17 krw Exp $ */
 
 /*
  * Copyright (c) 1997 Tobias Weingartner
@@ -64,9 +64,9 @@ main(int argc, char *argv[])
 {
        struct mbr               mbr;
 #ifdef HAS_MBR
-       char                    *mbrfile = _PATH_MBR;
+       const char              *mbrfile = _PATH_MBR;
 #else
-       char                    *mbrfile = NULL;
+       const char              *mbrfile = NULL;
 #endif
        int                      ch, error;
        int                      e_flag = 0, g_flag = 0, i_flag = 0, u_flag = 0;