summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/regression/sockets/reconnect/reconnect.c3
-rw-r--r--tools/regression/sockets/sendfile/sendfile.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/tools/regression/sockets/reconnect/reconnect.c b/tools/regression/sockets/reconnect/reconnect.c
index 27f32cc..985d6d7 100644
--- a/tools/regression/sockets/reconnect/reconnect.c
+++ b/tools/regression/sockets/reconnect/reconnect.c
@@ -104,7 +104,7 @@ cleanup(void)
}
int
-main()
+main(void)
{
int s_sock1, s_sock2, c_sock;
@@ -127,6 +127,7 @@ main()
connect_uds_server(c_sock, uds_name1);
close(s_sock1);
connect_uds_server(c_sock, uds_name2);
+ close(s_sock2);
exit (0);
}
diff --git a/tools/regression/sockets/sendfile/sendfile.c b/tools/regression/sockets/sendfile/sendfile.c
index 18ae9ad..3a59234 100644
--- a/tools/regression/sockets/sendfile/sendfile.c
+++ b/tools/regression/sockets/sendfile/sendfile.c
@@ -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);
OpenPOWER on IntegriCloud