Skip to content

Commit

Permalink
mbrfile can be const.
Browse files Browse the repository at this point in the history
  • Loading branch information
krw committed Jul 22, 2021
1 parent d05ae14 commit 7ab3c70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sbin/fdisk/fdisk.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7ab3c70

Please sign in to comment.