summaryrefslogtreecommitdiff
path: root/sbin/fdisk
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2021-07-22 18:54:18 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2021-07-22 18:54:18 +0000
commitffc99969b6c4c634def6f74431a48abc08a3a696 (patch)
tree7571d137649add81325633acd45142da2aa458b0 /sbin/fdisk
parent2409e33de3c62d179a70ce87b2261a43300efb38 (diff)
mbrfile can be const.
Diffstat (limited to 'sbin/fdisk')
-rw-r--r--sbin/fdisk/fdisk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index 6e9887f2d9a..e4af09328f3 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -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;