From: Nick Clifton Date: Mon, 18 Dec 2000 19:03:30 +0000 (+0000) Subject: Add default case to file_format switch. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02b89dcefcae12b4512f9e43c50746c5fa2709ba;p=binutils-gdb.git Add default case to file_format switch. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 99011eaf900..902f82c2d6a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2000-12-18 Nick Clifton + + * vms-misc.c (_bfd_vms_get_record): Add default case to + file_format switch. + 2000-12-15 Miloslav Trmac * elfcore.h (elf_core_file_p): Move to the start of the program diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c index c5893f30a98..8ebb67c0799 100644 --- a/bfd/vms-misc.c +++ b/bfd/vms-misc.c @@ -313,22 +313,23 @@ _bfd_vms_get_record (abfd) switch (PRIV(file_format)) { - case FF_UNKNOWN: - case FF_FOREIGN: - test_len = 6; /* probe 6 bytes */ - test_start = 2; /* where the record starts */ + case FF_UNKNOWN: + case FF_FOREIGN: + test_len = 6; /* probe 6 bytes */ + test_start = 2; /* where the record starts */ break; - - case FF_NATIVE: - test_len = 4; - test_start = 0; + + case FF_NATIVE: + test_len = 4; + test_start = 0; break; - - case FF_VAX: - test_len = 0; - test_start = 0; + + default: + case FF_VAX: + test_len = 0; + test_start = 0; break; - } + } /* skip odd alignment byte */