From: <ro...@us...> - 2003-08-01 17:39:24
|
Update of /cvsroot/ltp/ltp/testcases/network/multicast/mc_opts In directory sc8-pr-cvs1:/tmp/cvs-serv30174 Modified Files: Makefile opts.c Log Message: Had len variable set to a long, when it should be an int.....no matter what the arch is! Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/network/multicast/mc_opts/Makefile,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Makefile 1 Aug 2003 16:16:18 -0000 1.6 +++ Makefile 1 Aug 2003 17:39:20 -0000 1.7 @@ -1,4 +1,4 @@ -CFLAGS += -Wall -g +CFLAGS += -Wall -g -m64 LDLIBS += SRCS=$(wildcard *.c) Index: opts.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/network/multicast/mc_opts/opts.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- opts.c 1 Aug 2003 16:16:18 -0000 1.3 +++ opts.c 1 Aug 2003 17:39:21 -0000 1.4 @@ -30,7 +30,7 @@ int n=0; unsigned char ttl; char loop=0; - unsigned long len=0; + unsigned int len=0; if ( argc != 2) { fprintf(stderr, @@ -53,8 +53,8 @@ } else simr.imr_interface.s_addr = htonl((i1<<24) | (i2<<16) | (i3<<8) | i4); - strcpy(sintf, inet_ntoa(simr.imr_interface)); - + strcpy(sintf, inet_ntoa(simr.imr_interface)); + /* verify socket options */ if ( setsockopt(s, IPPROTO_IP, IP_MULTICAST_IF, &simr.imr_interface.s_addr, |