From: <ro...@us...> - 2003-03-26 22:13:19
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/llseek In directory sc8-pr-cvs1:/tmp/cvs-serv16341 Modified Files: Makefile llseek01.c llseek02.c Log Message: warnings cleanup Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/llseek/Makefile,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Makefile 14 Mar 2003 16:15:19 -0000 1.5 +++ Makefile 26 Mar 2003 22:13:10 -0000 1.6 @@ -20,7 +20,7 @@ # name of file : Makefile # # description : make(1) description file for the send(2) tests. # ########################################################################### -CFLAGS+= -D_GNU_SOURCE -I../../../../include +CFLAGS+= -D_GNU_SOURCE -I../../../../include -Wall LOADLIBES+= -L../../../../lib -lltp SRCS=$(wildcard *.c) Index: llseek01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/llseek/llseek01.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- llseek01.c 14 Mar 2003 16:15:19 -0000 1.4 +++ llseek01.c 26 Mar 2003 22:13:11 -0000 1.5 @@ -67,15 +67,15 @@ */ #include <unistd.h> -#include <sys/types.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> #include <utime.h> #include <string.h> +#include <signal.h> #include <sys/resource.h> #include <sys/stat.h> -#include <signal.h> +#include <sys/types.h> #include "test.h" #include "usctest.h" @@ -186,6 +186,7 @@ cleanup(); /*NOTREACHED*/ + return(0); } /* End main */ /* Index: llseek02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/llseek/llseek02.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- llseek02.c 14 Mar 2003 16:15:19 -0000 1.2 +++ llseek02.c 26 Mar 2003 22:13:11 -0000 1.3 @@ -121,7 +121,6 @@ int fildes; /* file handle for testfile */ int whence; /* position of file handle in the file */ char *test_desc; /* test specific error message */ - loff_t offset; /* return value after llseek */ int ind; /* counter to test different test conditions */ /* Parse standard options given to run the test. */ @@ -184,6 +183,7 @@ cleanup(); /*NOTREACHED*/ + return(0); } /* End main */ /* |