Skip to content

Commit

Permalink
[kernel] Eliminate compiler warnings during kernel compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Sep 2, 2024
1 parent 33a7c93 commit 2917a61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions elks/arch/i86/drivers/block/idequery.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static void INITPROC dump_ide(word_t *buffer, int size) {
* Could detect ATAPI drives here (extreme head count).
*/

int INITPROC get_ide_data(int drive, struct drive_infot *drive_info) {
int INITPROC get_ide_data(int drive, struct drive_infot *drivep) {

word_t port = io_ports[drive >> 1];
int retval = -1;
Expand Down Expand Up @@ -126,14 +126,14 @@ int INITPROC get_ide_data(int drive, struct drive_infot *drive_info) {
printk("IDE default CHS: %d/%d/%d serial %s\n",
ide_buffer[1], ide_buffer[3], ide_buffer[6], &ide_buffer[10]);
#endif
drive_info->cylinders = ide_buffer[54];
drive_info->heads = ide_buffer[55];
drive_info->sectors = ide_buffer[56];
drivep->cylinders = ide_buffer[54];
drivep->heads = ide_buffer[55];
drivep->sectors = ide_buffer[56];

/* Note: If the 3rd drive is slave, not master, it will be reported as
* hdd, not hdc here. */
debug("hd%c: %d heads, %d cylinders, %d sectors\n", 'a'+drive,
drive_info->heads, drive_info->cylinders, drive_info->sectors);
drivep->heads, drivep->cylinders, drivep->sectors);
retval = 0;
} else {
#if IDE_DEBUG
Expand Down

0 comments on commit 2917a61

Please sign in to comment.