From d54708399dbab43b2867dad1a41eb199eb0813d8 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 3 Jan 2007 02:58:54 +0000 Subject: fdisk: remove 8k buffer from bss - OSF labels are not THAT common anyway --- util-linux/fdisk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util-linux/fdisk.c') diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 27b041e..cc6dfa5 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c @@ -2715,7 +2715,7 @@ is_ide_cdrom_or_tape(const char *device) static void -try(const char *device, int user_specified) +trydev(const char *device, int user_specified) { int gb; @@ -2736,7 +2736,7 @@ try(const char *device, int user_specified) return; } #if ENABLE_FEATURE_OSF_LABEL - if (btrydev(device) < 0) + if (bsd_trydev(device) < 0) #endif printf(_("Disk %s doesn't contain a valid " "partition table\n"), device); @@ -2780,7 +2780,7 @@ tryprocpt(void) if (isdigit(s[-1])) continue; sprintf(devname, "/dev/%s", ptname); - try(devname, 0); + trydev(devname, 0); } #if ENABLE_FEATURE_CLEAN_UP fclose(procpt); @@ -2865,7 +2865,7 @@ int fdisk_main(int argc, char **argv) #endif listing = 1; for (k = 0; k < argc; k++) - try(argv[k], 1); + trydev(argv[k], 1); } else { /* we no longer have default device names */ /* but, we can use /proc/partitions instead */ -- cgit v1.1