summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-07-20 01:29:03 +0000
committerguenther <guenther@openbsd.org>2014-07-20 01:29:03 +0000
commit50b7afb2c2c0993b0894d4e34bf857cb13ed9c80 (patch)
treea1122224f036214c307006dc274db8cbf613e072
parentAdd missing include. Tickled by Doug Hogan (doug (at) acyclic.org) (diff)
downloadwireguard-openbsd-50b7afb2c2c0993b0894d4e34bf857cb13ed9c80.tar.xz
wireguard-openbsd-50b7afb2c2c0993b0894d4e34bf857cb13ed9c80.zip
Delete unused variables found by -Wall
-rwxr-xr-xregress/lib/libc/stdio_threading/fgetln/fgetln_test.c1
-rwxr-xr-xregress/lib/libc/stdio_threading/fgets/fgets_test.c1
-rwxr-xr-xregress/lib/libc/stdio_threading/fputs/fputs_test.c2
-rwxr-xr-xregress/lib/libc/stdio_threading/fread/fread_test.c1
-rwxr-xr-xregress/lib/libc/stdio_threading/fwrite/fwrite_test.c2
5 files changed, 2 insertions, 5 deletions
diff --git a/regress/lib/libc/stdio_threading/fgetln/fgetln_test.c b/regress/lib/libc/stdio_threading/fgetln/fgetln_test.c
index d5c4db2edf5..0c815838d0b 100755
--- a/regress/lib/libc/stdio_threading/fgetln/fgetln_test.c
+++ b/regress/lib/libc/stdio_threading/fgetln/fgetln_test.c
@@ -43,7 +43,6 @@ int
main(void)
{
char sfn[24];
- char buf[sizeof(TEXT_N)];
FILE *sfp;
int fd, i;
diff --git a/regress/lib/libc/stdio_threading/fgets/fgets_test.c b/regress/lib/libc/stdio_threading/fgets/fgets_test.c
index 685d4c8257d..c53abbc06bc 100755
--- a/regress/lib/libc/stdio_threading/fgets/fgets_test.c
+++ b/regress/lib/libc/stdio_threading/fgets/fgets_test.c
@@ -42,7 +42,6 @@ int
main(void)
{
char sfn[24];
- char buf[sizeof(TEXT)];
FILE *sfp;
int fd, i;
diff --git a/regress/lib/libc/stdio_threading/fputs/fputs_test.c b/regress/lib/libc/stdio_threading/fputs/fputs_test.c
index c0a617510e9..90b6179fd5e 100755
--- a/regress/lib/libc/stdio_threading/fputs/fputs_test.c
+++ b/regress/lib/libc/stdio_threading/fputs/fputs_test.c
@@ -41,7 +41,7 @@ main(void)
char sfn[24];
char buf[sizeof(TEXT)];
FILE *sfp;
- int fd, i;
+ int fd;
strlcpy(sfn, "/tmp/barnacles.XXXXXXXX", sizeof(sfn));
if ((fd = mkstemp(sfn)) == -1 ||
diff --git a/regress/lib/libc/stdio_threading/fread/fread_test.c b/regress/lib/libc/stdio_threading/fread/fread_test.c
index b2372f5ab60..c45a64d14e4 100755
--- a/regress/lib/libc/stdio_threading/fread/fread_test.c
+++ b/regress/lib/libc/stdio_threading/fread/fread_test.c
@@ -44,7 +44,6 @@ int
main(void)
{
char sfn[24];
- char buf[sizeof(TEXT)];
FILE *sfp;
int fd, i;
diff --git a/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c b/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c
index 39bfb51ef0b..621c5cb6e8e 100755
--- a/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c
+++ b/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c
@@ -41,7 +41,7 @@ main(void)
char sfn[24];
char buf[sizeof(TEXT)];
FILE *sfp;
- int fd, i;
+ int fd;
strlcpy(sfn, "/tmp/barnacles.XXXXXXXX", sizeof(sfn));
if ((fd = mkstemp(sfn)) == -1 ||