Date: Tue, 14 Sep 2021 20:51:06 GMT From: Alan Somers <asomers@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 5dc5f849be90 - main - tools/test/upsdl: fix compiler warnings Message-ID: <202109142051.18EKp64w052571@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=5dc5f849be9047309d32c4df8e7ee617c27ec43f commit 5dc5f849be9047309d32c4df8e7ee617c27ec43f Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2021-09-14 20:50:01 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2021-09-14 20:50:01 +0000 tools/test/upsdl: fix compiler warnings MFC after: 2 weeks Sponsored by: Axcient --- tools/test/upsdl/upsdl.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/test/upsdl/upsdl.c b/tools/test/upsdl/upsdl.c index fc4a761e450b..960b034ffcfe 100644 --- a/tools/test/upsdl/upsdl.c +++ b/tools/test/upsdl/upsdl.c @@ -32,20 +32,21 @@ #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> +#include <stdlib.h> #include <sys/mman.h> -int prepareFile(char* filename,int* fdp); +int prepareFile(const char* filename,int* fdp); int mapBuffer(char** bufferp,int fd1,int fd2); int startIO(int fd,char *buffer); -int pagesize; +static int pagesize; #define FILESIZE (32*1024) -char wbuffer[FILESIZE]; +static char wbuffer[FILESIZE]; /* Create a FILESIZE sized file - then remove file data from the cache*/ -int prepareFile(char* filename,int* fdp) +int prepareFile(const char* filename,int* fdp) { int fd; int len; @@ -134,7 +135,7 @@ int startIO(int fd,char *buffer) } -int main(int argc,char *argv[],char *envp[]) +int main(int argc __unused, char *argv[] __unused) { int fdA,fdB,fdDelayA,fdDelayB;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109142051.18EKp64w052571>