diff options
| author | Karel Zak <kzak@redhat.com> | 2013-07-10 15:35:27 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-09-16 16:47:07 +0200 |
| commit | bcef4db44395702fa2a8051c94bb34e55649fcd3 (patch) | |
| tree | b2a05a11ab8383312ac7ef0b623b8d53fb363372 | |
| parent | 0b08fb074af3b5b3ea532209e9eb058084166d18 (diff) | |
| download | util-linux-bcef4db44395702fa2a8051c94bb34e55649fcd3.tar.gz | |
fdisk: (bsd) coding style, remove unnecessary #ifdef
Signed-off-by: Karel Zak <kzak@redhat.com>
| -rw-r--r-- | fdisks/fdiskbsdlabel.c | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/fdisks/fdiskbsdlabel.c b/fdisks/fdiskbsdlabel.c index f57a67bc..ab9642fb 100644 --- a/fdisks/fdiskbsdlabel.c +++ b/fdisks/fdiskbsdlabel.c @@ -782,26 +782,22 @@ static void sync_disks(struct fdisk_context *cxt) sleep(4); } -#if !defined (__alpha__) -static int -xbsd_translate_fstype (int linux_type) +static int xbsd_translate_fstype (int linux_type) { - switch (linux_type) - { - case 0x01: /* DOS 12-bit FAT */ - case 0x04: /* DOS 16-bit <32M */ - case 0x06: /* DOS 16-bit >=32M */ - case 0xe1: /* DOS access */ - case 0xe3: /* DOS R/O */ - case 0xf2: /* DOS secondary */ - return BSD_FS_MSDOS; - case 0x07: /* OS/2 HPFS */ - return BSD_FS_HPFS; - default: - return BSD_FS_OTHER; - } + switch (linux_type) { + case 0x01: /* DOS 12-bit FAT */ + case 0x04: /* DOS 16-bit <32M */ + case 0x06: /* DOS 16-bit >=32M */ + case 0xe1: /* DOS access */ + case 0xe3: /* DOS R/O */ + case 0xf2: /* DOS secondary */ + return BSD_FS_MSDOS; + case 0x07: /* OS/2 HPFS */ + return BSD_FS_HPFS; + default: + return BSD_FS_OTHER; + } } -#endif /* * link partition from parent (DOS) to nested BSD partition table |
