Remove unused function

This commit is contained in:
King_DuckZ 2020-03-03 15:35:49 +01:00
parent 141f647497
commit 399a1a5f5e

View file

@ -229,7 +229,6 @@ LOCAL void parse_dir __PR((struct todo *dp,
EXPORT int main __PR((int argc, char *argv[]));
LOCAL void list_vd __PR((struct iso_primary_descriptor *vp, BOOL ucs));
LOCAL void list_locales __PR((void));
LOCAL void printf_bootinfo __PR((FILE *f, int bootcat_offset));
LOCAL char *arch_name __PR((int val));
LOCAL char *boot_name __PR((int val));
LOCAL char *bootmedia_name __PR((int val));
@ -1816,53 +1815,6 @@ list_locales()
#include <schily/intcvt.h>
LOCAL void
printf_bootinfo(f, bootcat_offset)
FILE *f;
int bootcat_offset;
{
int s = 0;
int i;
Uchar *p;
struct eltorito_validation_entry *evp;
struct eltorito_defaultboot_entry *ebe;
#ifdef USE_SCG
readsecs(bootcat_offset, buffer, ISO_BLOCKS(sizeof (buffer)));
#else
lseek(fileno(f), ((off_t)bootcat_offset) <<11, SEEK_SET);
read(fileno(f), buffer, sizeof (buffer));
#endif
evp = (struct eltorito_validation_entry *)buffer;
ebe = (struct eltorito_defaultboot_entry *)&buffer[32];
p = (Uchar *)evp;
for (i = 0; i < 32; i += 2) {
s += p[i] & 0xFF;
s += (p[i+1] & 0xFF) * 256;
}
s = s % 65536;
printf(_("Eltorito validation header:\n"));
printf(_(" Hid %d\n"), (Uchar)evp->headerid[0]);
printf(_(" Arch %d (%s)\n"), (Uchar)evp->arch[0], arch_name((Uchar)evp->arch[0]));
printf(_(" ID '%.23s'\n"), evp->id);
printf(_(" Cksum %2.2X %2.2X %s\n"), (Uchar)evp->cksum[0], (Uchar)evp->cksum[1],
s == 0 ? _("OK"):_("BAD"));
printf(_(" Key %X %X\n"), (Uchar)evp->key1[0], (Uchar)evp->key2[0]);
printf(_(" Eltorito defaultboot header:\n"));
printf(_(" Bootid %X (%s)\n"), (Uchar)ebe->boot_id[0], boot_name((Uchar)ebe->boot_id[0]));
printf(_(" Boot media %X (%s)\n"), (Uchar)ebe->boot_media[0], bootmedia_name((Uchar)ebe->boot_media[0]));
printf(_(" Load segment %X\n"), la_to_2_byte(ebe->loadseg));
printf(_(" Sys type %X\n"), (Uchar)ebe->sys_type[0]);
printf(_(" Nsect %X\n"), la_to_2_byte(ebe->nsect));
printf(_(" Bootoff %lX %ld\n"), la_to_4_byte(ebe->bootoff), la_to_4_byte(ebe->bootoff));
}
LOCAL char *
arch_name(val)
int val;