svn commit: r293882 - user/ngie/socket-tests/tools/regression/sockets/sendfile
Garrett Cooper
ngie at FreeBSD.org
Thu Jan 14 08:16:28 UTC 2016
Author: ngie
Date: Thu Jan 14 08:16:27 2016
New Revision: 293882
URL: https://svnweb.freebsd.org/changeset/base/293882
Log:
Fix a -Wunused-but-set warning with gcc 5.0 with pagesize in main(..)
Modified:
user/ngie/socket-tests/tools/regression/sockets/sendfile/sendfile.c
Modified: user/ngie/socket-tests/tools/regression/sockets/sendfile/sendfile.c
==============================================================================
--- user/ngie/socket-tests/tools/regression/sockets/sendfile/sendfile.c Thu Jan 14 07:50:02 2016 (r293881)
+++ user/ngie/socket-tests/tools/regression/sockets/sendfile/sendfile.c Thu Jan 14 08:16:27 2016 (r293882)
@@ -459,12 +459,9 @@ cleanup(void)
int
main(int argc, char *argv[])
{
- int pagesize;
path[0] = '\0';
- pagesize = getpagesize();
-
if (argc == 1) {
snprintf(path, sizeof(path), "sendfile.XXXXXXXXXXXX");
file_fd = mkstemp(path);
More information about the svn-src-user
mailing list