--- a/amigastuff.c +++ b/amigastuff.c @@ -66,7 +66,7 @@ int rigiddisk_new(int first); -char *get_block(block) +char *get_block(int block) { /* This is a true quickhack. Whenn we are in list only * mode, we may not have swap and so we may not be able @@ -81,9 +81,10 @@ if (list_only) { if ((l=open(disk_device,O_RDONLY))<0) { - if (get_dev) + if (get_dev) { fprintf (stderr,"Cannot open device %s\n",disk_device); return NULL; + } } if (lseek(l,(block*SECTOR_SIZE),SEEK_SET)<0) {