From 7ab3c70152ceec36d96c6baa2a54b8a5a6fb99bb Mon Sep 17 00:00:00 2001 From: krw Date: Thu, 22 Jul 2021 18:54:17 +0000 Subject: [PATCH] mbrfile can be const. --- sbin/fdisk/fdisk.c | 6 +++--- 1 file 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; -- 2.20.1