summaryrefslogtreecommitdiff
path: root/usr/src/cmd/format/menu_partition.c
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2022-04-03 10:42:35 +0300
committerToomas Soome <tsoome@me.com>2022-04-19 01:58:17 +0300
commitb12aaafbf56c5a06b6cfd21655531a33e38a8ed9 (patch)
treeca10ca759be5de1857e5b2bea4c3ea821cfd1d04 /usr/src/cmd/format/menu_partition.c
parentc74f1323689f1dfea444e7fe0627eafc8c3b9076 (diff)
downloadillumos-gate-b12aaafbf56c5a06b6cfd21655531a33e38a8ed9.tar.gz
14613 format: cstyle cleanup
Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/cmd/format/menu_partition.c')
-rw-r--r--usr/src/cmd/format/menu_partition.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/cmd/format/menu_partition.c b/usr/src/cmd/format/menu_partition.c
index 26e0867018..6294ebd6e8 100644
--- a/usr/src/cmd/format/menu_partition.c
+++ b/usr/src/cmd/format/menu_partition.c
@@ -35,7 +35,6 @@
#include "misc.h"
#include "param.h"
-/* Function prototypes for ANSI C Compilers */
static void nspaces(int);
static int ndigits(uint64_t);
@@ -344,7 +343,7 @@ p_name(void)
*/
name = (char *)(uintptr_t)input(FIO_OSTR,
"Enter table name (remember quotes)",
- ':', (u_ioparam_t *)NULL, (int *)NULL, DATA_INPUT);
+ ':', NULL, NULL, DATA_INPUT);
/*
* Lock out interrupts.
*/
@@ -493,13 +492,13 @@ print_efi_partition(struct dk_gpt *map, int partnum, int want_header)
fmt_print(" %d ", partnum);
s = find_string(ptag_choices, (int)map->efi_parts[partnum].p_tag);
- if (s == (char *)NULL)
+ if (s == NULL)
s = "-";
nspaces(10 - (int)strlen(s));
fmt_print("%s", s);
s = find_string(pflag_choices, (int)map->efi_parts[partnum].p_flag);
- if (s == (char *)NULL)
+ if (s == NULL)
s = "-";
nspaces(6 - (int)strlen(s));
fmt_print("%s", s);
@@ -594,7 +593,7 @@ print_partition(struct partition_info *pinfo, int partnum, int want_header)
* Print the partition tag. If invalid, print -
*/
s = find_string(ptag_choices, (int)pinfo->vtoc.v_part[partnum].p_tag);
- if (s == (char *)NULL)
+ if (s == NULL)
s = "-";
nspaces(10 - (int)strlen(s));
fmt_print("%s", s);