static int xbsd_create_disklabel(void) { char c; #if defined(__alpha__) printf("%s contains no disklabel\n", disk_device); #else printf("%s contains no disklabel\n", partname(disk_device, xbsd_part_index + 1, 0)); #endif while (1) { c = read_nonempty("Do you want to create a disklabel? (y/n) "); if ((c|0x20) == 'y') { if (xbsd_initlabel( #if defined(__alpha__) || defined(__powerpc__) || defined(__hppa__) || \ defined(__s390__) || defined(__s390x__) NULL #else xbsd_part #endif ) == 1) { xbsd_print_disklabel(1); return 1; } return 0; } if ((c|0x20) == 'n') return 0; } }
static int xbsd_create_disklabel (void) { char c; #if defined (__alpha__) fprintf (stderr, _("%s contains no disklabel.\n"), disk_device); #else fprintf (stderr, _("%s contains no disklabel.\n"), partname(disk_device, xbsd_part_index+1, 0)); #endif while (1) { c = read_char (_("Do you want to create a disklabel? (y/n) ")); if (tolower(c) == 'y') { if (xbsd_initlabel ( #if defined (__alpha__) || defined (__powerpc__) NULL, &xbsd_dlabel, 0 #else xbsd_part, &xbsd_dlabel, xbsd_part_index #endif ) == 1) { xbsd_print_disklabel (1); return 1; } else return 0; } else if (c == 'n') return 0; } }