hopefully the last of the annoying signed/unsigned and mixed type errors
This commit is contained in:
@ -1908,10 +1908,10 @@ sgi_list_table(int xtra) {
|
||||
if (sgilabel->directory[i].vol_file_size) {
|
||||
uint32_t start = SGI_SSWAP32(sgilabel->directory[i].vol_file_start);
|
||||
uint32_t len = SGI_SSWAP32(sgilabel->directory[i].vol_file_size);
|
||||
char*name = sgilabel->directory[i].vol_file_name;
|
||||
unsigned char*name = sgilabel->directory[i].vol_file_name;
|
||||
|
||||
printf(_("%2d: %-10s sector%5u size%8u\n"),
|
||||
i, name, (unsigned int) start, (unsigned int) len);
|
||||
i, (char*)name, (unsigned int) start, (unsigned int) len);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1953,7 +1953,7 @@ sgi_check_bootfile(const char* aFile) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (strncmp(aFile, sgilabel->boot_file, 16)) {
|
||||
if (strncmp(aFile, (char*)sgilabel->boot_file, 16)) {
|
||||
printf(_("\n\tBe aware, that the bootfile is not checked for existence.\n\t"
|
||||
"SGI's default is \"/unix\" and for backup \"/unix.save\".\n"));
|
||||
/* filename is correct and did change */
|
||||
@ -1964,7 +1964,7 @@ sgi_check_bootfile(const char* aFile) {
|
||||
|
||||
static const char *
|
||||
sgi_get_bootfile(void) {
|
||||
return sgilabel->boot_file;
|
||||
return (char*)sgilabel->boot_file;
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1990,7 +1990,7 @@ create_sgiinfo(void)
|
||||
/* I keep SGI's habit to write the sgilabel to the second block */
|
||||
sgilabel->directory[0].vol_file_start = SGI_SSWAP32(2);
|
||||
sgilabel->directory[0].vol_file_size = SGI_SSWAP32(sizeof(sgiinfo));
|
||||
strncpy(sgilabel->directory[0].vol_file_name, "sgilabel", 8);
|
||||
strncpy((char*)sgilabel->directory[0].vol_file_name, "sgilabel", 8);
|
||||
}
|
||||
|
||||
static sgiinfo *fill_sgiinfo(void);
|
||||
@ -2007,7 +2007,7 @@ sgi_write_table(void) {
|
||||
fdisk_fatal(unable_to_seek);
|
||||
if (write(fd, sgilabel, SECTOR_SIZE) != SECTOR_SIZE)
|
||||
fdisk_fatal(unable_to_write);
|
||||
if (! strncmp(sgilabel->directory[0].vol_file_name, "sgilabel", 8)) {
|
||||
if (! strncmp((char*)sgilabel->directory[0].vol_file_name, "sgilabel", 8)) {
|
||||
/*
|
||||
* keep this habit of first writing the "sgilabel".
|
||||
* I never tested whether it works without (AN 981002).
|
||||
@ -2389,7 +2389,7 @@ create_sgilabel(void)
|
||||
|
||||
/* sizeof(sgilabel->boot_file) = 16 > 6 */
|
||||
memset(sgilabel->boot_file, 0, 16);
|
||||
strcpy(sgilabel->boot_file, "/unix");
|
||||
strcpy((char*)sgilabel->boot_file, "/unix");
|
||||
|
||||
sgilabel->devparam.skew = (0);
|
||||
sgilabel->devparam.gap1 = (0);
|
||||
@ -2451,10 +2451,10 @@ fill_sgiinfo(void)
|
||||
info->b2=SGI_SSWAP16(-1);
|
||||
info->b3=SGI_SSWAP16(1);
|
||||
/* You may want to replace this string !!!!!!! */
|
||||
strcpy( info->scsi_string, "IBM OEM 0662S12 3 30" );
|
||||
strcpy( info->serial, "0000" );
|
||||
strcpy( (char*)info->scsi_string, "IBM OEM 0662S12 3 30" );
|
||||
strcpy( (char*)info->serial, "0000" );
|
||||
info->check1816 = SGI_SSWAP16(18*256 +16 );
|
||||
strcpy( info->installer, "Sfx version 5.3, Oct 18, 1994" );
|
||||
strcpy( (char*)info->installer, "Sfx version 5.3, Oct 18, 1994" );
|
||||
return info;
|
||||
}
|
||||
#endif /* SGI_LABEL */
|
||||
@ -3937,7 +3937,7 @@ get_partition_table_geometry(void) {
|
||||
int first = 1;
|
||||
int bad = 0;
|
||||
|
||||
if (!(valid_part_table_flag(bufp)))
|
||||
if (!(valid_part_table_flag((char*)bufp)))
|
||||
return;
|
||||
|
||||
hh = ss = 0;
|
||||
|
Reference in New Issue
Block a user