aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r--util-linux/fdisk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 696e64c7d..71fbe074e 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -5655,7 +5655,7 @@ tryprocpt(void) {
5655 char line[100], ptname[100], devname[120], *s; 5655 char line[100], ptname[100], devname[120], *s;
5656 int ma, mi, sz; 5656 int ma, mi, sz;
5657 5657
5658 procpt = wfopen(PROC_PARTITIONS, "r"); 5658 procpt = bb_wfopen(PROC_PARTITIONS, "r");
5659 5659
5660 while (fgets(line, sizeof(line), procpt)) { 5660 while (fgets(line, sizeof(line), procpt)) {
5661 if (sscanf (line, " %d %d %d %[^\n ]", 5661 if (sscanf (line, " %d %d %d %[^\n ]",
@@ -5711,7 +5711,7 @@ int fdisk_main(int argc, char **argv) {
5711 sector_size = atoi(optarg); 5711 sector_size = atoi(optarg);
5712 if (sector_size != 512 && sector_size != 1024 && 5712 if (sector_size != 512 && sector_size != 1024 &&
5713 sector_size != 2048) 5713 sector_size != 2048)
5714 show_usage(); 5714 bb_show_usage();
5715 sector_offset = 2; 5715 sector_offset = 2;
5716 user_set_sector_size = 1; 5716 user_set_sector_size = 1;
5717 break; 5717 break;
@@ -5746,7 +5746,7 @@ int fdisk_main(int argc, char **argv) {
5746 printf("fdisk v" UTIL_LINUX_VERSION "\n"); 5746 printf("fdisk v" UTIL_LINUX_VERSION "\n");
5747 return 0; 5747 return 0;
5748 default: 5748 default:
5749 show_usage(); 5749 bb_show_usage();
5750 } 5750 }
5751 } 5751 }
5752 5752
@@ -5794,7 +5794,7 @@ int fdisk_main(int argc, char **argv) {
5794 5794
5795 opts = argc - optind; 5795 opts = argc - optind;
5796 if (opts <= 0) 5796 if (opts <= 0)
5797 show_usage(); 5797 bb_show_usage();
5798 5798
5799 for (j = optind; j < argc; j++) { 5799 for (j = optind; j < argc; j++) {
5800 disk_device = argv[j]; 5800 disk_device = argv[j];
@@ -5816,7 +5816,7 @@ int fdisk_main(int argc, char **argv) {
5816 if (argc-optind == 1) 5816 if (argc-optind == 1)
5817 disk_device = argv[optind]; 5817 disk_device = argv[optind];
5818 else 5818 else
5819 show_usage(); 5819 bb_show_usage();
5820 5820
5821 get_boot(fdisk); 5821 get_boot(fdisk);
5822 5822