Debian Codegraph @

debian/patches/gcc14

raw
1 --- a/amigastuff.c
2 +++ b/amigastuff.c
3 @@ -66,7 +66,7 @@
4
5 int rigiddisk_new(int first);
6
7 -char *get_block(block)
8 +char *get_block(int block)
9 {
10 /* This is a true quickhack. Whenn we are in list only
11 * mode, we may not have swap and so we may not be able
12 @@ -81,9 +81,10 @@
13 if (list_only)
14 {
15 if ((l=open(disk_device,O_RDONLY))<0) {
16 - if (get_dev)
17 + if (get_dev) {
18 fprintf (stderr,"Cannot open device %s\n",disk_device);
19 return NULL;
20 + }
21 }
22
23 if (lseek(l,(block*SECTOR_SIZE),SEEK_SET)<0) {