wok diff linld/stuff/src/TAZBOOT.CPP @ rev 20458
Up amule (2.3.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 10 10:43:41 2018 +0200 (2018-10-10) |
parents | 7b15fbf27388 |
children | 2e46d946d7a8 |
line diff
1.1 --- a/linld/stuff/src/TAZBOOT.CPP Sat Oct 06 15:17:20 2018 +0200 1.2 +++ b/linld/stuff/src/TAZBOOT.CPP Wed Oct 10 10:43:41 2018 +0200 1.3 @@ -20,7 +20,7 @@ 1.4 static void next_chunk(struct image_himem *m) 1.5 { 1.6 struct initrd_info *i = &initrd_state.info[m->state]; 1.7 - m->chunk_size &= 0; 1.8 + m->chunk_size = 0; 1.9 if (m->state >= initrd_state.cnt) return; 1.10 lseekset(m->fd,i->ofs); 1.11 m->chunk_size = i->size; 1.12 @@ -49,7 +49,7 @@ 1.13 if (!m->size) return; 1.14 m->next_chunk = next_chunk; 1.15 m->fd = isofd; 1.16 - m->state &= 0; 1.17 + m->state = 0; 1.18 next_chunk(m); 1.19 load_initrd(); 1.20 } 1.21 @@ -133,9 +133,9 @@ 1.22 read(x->fd, &x->filemod, 10); // + x->fileofs & x->filesize 1.23 magic = x->filemod; 1.24 //x->fileofs &= 0xFFFFL; 1.25 - * ((short *) &x->fileofs + 1) &= 0; 1.26 + * ((short *) &x->fileofs + 1) = 0; 1.27 //x->fileofs -= 0xC0L + (x->filesize &= 0xFFFF); 1.28 - * ((short *) &x->filesize + 1) &= 0; 1.29 + * ((short *) &x->filesize + 1) = 0; 1.30 x->fileofs -= 0xC0L + x->filesize; 1.31 if (((short *) &x->fileofs)[1] == 0) addinitrd(); 1.32 else init="";