From: Subrata <sub...@us...> - 2008-10-29 05:48:15
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/switch In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv31983/ltp/testcases/kernel/syscalls/switch Modified Files: endian_switch01.c Log Message: The following hack fixes the "endian_switch01.c:115: warning: âmainâ takes only zero or two arguments" warning. Signed-off-by: CAI Qian <ca...@cc...>. Index: endian_switch01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/switch/endian_switch01.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** endian_switch01.c 20 Oct 2008 06:30:33 -0000 1.2 --- endian_switch01.c 29 Oct 2008 05:48:09 -0000 1.3 *************** *** 75,78 **** --- 75,81 ---- } + + extern int main4(int ac, char **av, char **envp, unsigned long *auxv) + __asm ("main"); #endif *************** *** 113,117 **** } ! int main(int ac, char **av, char **envp, unsigned long *auxv) { setup(); for (; *auxv != AT_NULL && *auxv != AT_HWCAP; auxv += 2) --- 116,120 ---- } ! int main4(int ac, char **av, char **envp, unsigned long *auxv) { setup(); for (; *auxv != AT_NULL && *auxv != AT_HWCAP; auxv += 2) |