* cpio.c (cpio_read_bin_head): Replaced GUINT16_SWAP_LE_BE with

GUINT16_SWAP_LE_BE_CONSTANT, because GCC-3.3 emitted a warning about
	__asm__ __const__.
This commit is contained in:
Roland Illig 2004-09-23 14:58:40 +00:00
parent ff7a776535
commit 60465dace3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2004-09-23 Roland Illig <roland.illig@gmx.de>
* cpio.c (cpio_read_bin_head): Replaced GUINT16_SWAP_LE_BE with
GUINT16_SWAP_LE_BE_CONSTANT, because GCC-3.3 emitted a warning about
__asm__ __const__.
2004-09-22 Roland Illig <roland.illig@gmx.de>
* direntry.c (vfs_s_new_entry): see 2004-09-19. Additionally followed the advice

View File

@ -267,7 +267,7 @@ static int cpio_read_bin_head(struct vfs_class *me, struct vfs_s_super *super)
if(super->u.arch.type == CPIO_BINRE) {
int i;
for(i = 0; i < (HEAD_LENGTH >> 1); i++)
u.shorts[i] = GUINT16_SWAP_LE_BE(u.shorts[i]);
u.shorts[i] = GUINT16_SWAP_LE_BE_CONSTANT(u.shorts[i]);
}
g_assert(u.buf.c_magic == 070707);