From: Philip S T. <blu...@us...> - 2004-01-31 02:27:46
|
Update of /cvsroot/ayttm/ayttm/modules/yahoo2/libyahoo2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23171/modules/yahoo2/libyahoo2 Modified Files: yahoo_fn.c yahoo_fn.h Log Message: ISO C does not allow unnamed unions Index: yahoo_fn.c =================================================================== RCS file: /cvsroot/ayttm/ayttm/modules/yahoo2/libyahoo2/yahoo_fn.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- yahoo_fn.c 29 Jan 2004 05:11:29 -0000 1.4 +++ yahoo_fn.c 29 Jan 2004 05:21:43 -0000 1.5 @@ -4594,18 +4594,18 @@ case IDENT: return seed; case XOR: - seed ^= xfrm->arg1; + seed ^= xfrm->arg1_u.arg1; break; case MULADD: - seed = seed * xfrm->arg1 + xfrm->arg2; + seed = seed * xfrm->arg1_u.arg1 + xfrm->arg2; break; case LOOKUP: - arg = xfrm->table; + arg = xfrm->arg1_u.table; seed = arg[A( seed )] | arg[B( seed )] << 8 | arg[C( seed )] << 16 | arg[D( seed )] << 24; break; case BITFLD: - arg = xfrm->table; + arg = xfrm->arg1_u.table; for( j = 0, z = 0; j < 32; j++ ) z = ((( seed >> j ) & 1 ) << arg[j] ) | ( ~( 1 << arg[j] ) & z ); seed = z; Index: yahoo_fn.h =================================================================== RCS file: /cvsroot/ayttm/ayttm/modules/yahoo2/libyahoo2/yahoo_fn.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- yahoo_fn.h 28 Jan 2004 21:12:43 -0000 1.3 +++ yahoo_fn.h 29 Jan 2004 05:21:43 -0000 1.4 @@ -30,7 +30,7 @@ union { unsigned char *table; int arg1; - }; + } arg1_u; int arg2; /* arguments */ }; |