diff options
| author | Karel Zak <kzak@redhat.com> | 2013-09-17 15:13:15 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-09-17 15:13:15 +0200 |
| commit | e5db5e805279f0c987479fe2a8f88cae2ea6ac41 (patch) | |
| tree | f80f24ee400edb84bb0d23ddc47e894cb5e40629 /fdisks/fdisk-menu.c | |
| parent | 811d2eccaf1df44ef045ad05b67a7254f26986d7 (diff) | |
| download | util-linux-e5db5e805279f0c987479fe2a8f88cae2ea6ac41.tar.gz | |
fdisk: remove unnecessary test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk-menu.c')
| -rw-r--r-- | fdisks/fdisk-menu.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/fdisks/fdisk-menu.c b/fdisks/fdisk-menu.c index 10450cc6..72513072 100644 --- a/fdisks/fdisk-menu.c +++ b/fdisks/fdisk-menu.c @@ -809,28 +809,3 @@ static int createlabel_menu_cb(struct fdisk_context **cxt0, } return rc; } - -#ifdef TEST_PROGRAM -struct fdisk_label *fdisk_new_dos_label(struct fdisk_context *cxt) { return NULL; } -struct fdisk_label *fdisk_new_bsd_label(struct fdisk_context *cxt) { return NULL; } -struct fdisk_label *fdisk_new_mac_label(struct fdisk_context *cxt) { return NULL; } -struct fdisk_label *fdisk_new_sgi_label(struct fdisk_context *cxt) { return NULL; } - -int main(int argc, char *argv[]) -{ - struct fdisk_context *cxt; - int idx = 1; - - fdisk_init_debug(0); - cxt = fdisk_new_context(); - - if (argc > idx && strcmp(argv[idx], "--expert") == 0) { - fdisk_context_enable_details(cxt, 1); - idx++; - } - fdisk_context_switch_label(cxt, argc > idx ? argv[idx] : "gpt"); - - print_fdisk_menu(cxt); - return 0; -} -#endif |
