summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguenther <>2014-07-20 01:29:03 +0000
committerguenther <>2014-07-20 01:29:03 +0000
commit61b0982e8e00b9d378695b1873b5409afd7d7b96 (patch)
treeae76bac47c18605413349ffb9e328643088db94a
parentf0d21d8f4dfc79707af2bdf219552f76beaddb73 (diff)
downloadopenbsd-61b0982e8e00b9d378695b1873b5409afd7d7b96.tar.gz
openbsd-61b0982e8e00b9d378695b1873b5409afd7d7b96.tar.bz2
openbsd-61b0982e8e00b9d378695b1873b5409afd7d7b96.zip
Delete unused variables found by -Wall
-rwxr-xr-xsrc/regress/lib/libc/stdio_threading/fgetln/fgetln_test.c1
-rwxr-xr-xsrc/regress/lib/libc/stdio_threading/fgets/fgets_test.c1
-rwxr-xr-xsrc/regress/lib/libc/stdio_threading/fputs/fputs_test.c2
-rwxr-xr-xsrc/regress/lib/libc/stdio_threading/fread/fread_test.c1
-rwxr-xr-xsrc/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c2
5 files changed, 2 insertions, 5 deletions
diff --git a/src/regress/lib/libc/stdio_threading/fgetln/fgetln_test.c b/src/regress/lib/libc/stdio_threading/fgetln/fgetln_test.c
index d5c4db2edf..0c815838d0 100755
--- a/src/regress/lib/libc/stdio_threading/fgetln/fgetln_test.c
+++ b/src/regress/lib/libc/stdio_threading/fgetln/fgetln_test.c
@@ -43,7 +43,6 @@ int
43main(void) 43main(void)
44{ 44{
45 char sfn[24]; 45 char sfn[24];
46 char buf[sizeof(TEXT_N)];
47 FILE *sfp; 46 FILE *sfp;
48 int fd, i; 47 int fd, i;
49 48
diff --git a/src/regress/lib/libc/stdio_threading/fgets/fgets_test.c b/src/regress/lib/libc/stdio_threading/fgets/fgets_test.c
index 685d4c8257..c53abbc06b 100755
--- a/src/regress/lib/libc/stdio_threading/fgets/fgets_test.c
+++ b/src/regress/lib/libc/stdio_threading/fgets/fgets_test.c
@@ -42,7 +42,6 @@ int
42main(void) 42main(void)
43{ 43{
44 char sfn[24]; 44 char sfn[24];
45 char buf[sizeof(TEXT)];
46 FILE *sfp; 45 FILE *sfp;
47 int fd, i; 46 int fd, i;
48 47
diff --git a/src/regress/lib/libc/stdio_threading/fputs/fputs_test.c b/src/regress/lib/libc/stdio_threading/fputs/fputs_test.c
index c0a617510e..90b6179fd5 100755
--- a/src/regress/lib/libc/stdio_threading/fputs/fputs_test.c
+++ b/src/regress/lib/libc/stdio_threading/fputs/fputs_test.c
@@ -41,7 +41,7 @@ main(void)
41 char sfn[24]; 41 char sfn[24];
42 char buf[sizeof(TEXT)]; 42 char buf[sizeof(TEXT)];
43 FILE *sfp; 43 FILE *sfp;
44 int fd, i; 44 int fd;
45 45
46 strlcpy(sfn, "/tmp/barnacles.XXXXXXXX", sizeof(sfn)); 46 strlcpy(sfn, "/tmp/barnacles.XXXXXXXX", sizeof(sfn));
47 if ((fd = mkstemp(sfn)) == -1 || 47 if ((fd = mkstemp(sfn)) == -1 ||
diff --git a/src/regress/lib/libc/stdio_threading/fread/fread_test.c b/src/regress/lib/libc/stdio_threading/fread/fread_test.c
index b2372f5ab6..c45a64d14e 100755
--- a/src/regress/lib/libc/stdio_threading/fread/fread_test.c
+++ b/src/regress/lib/libc/stdio_threading/fread/fread_test.c
@@ -44,7 +44,6 @@ int
44main(void) 44main(void)
45{ 45{
46 char sfn[24]; 46 char sfn[24];
47 char buf[sizeof(TEXT)];
48 FILE *sfp; 47 FILE *sfp;
49 int fd, i; 48 int fd, i;
50 49
diff --git a/src/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c b/src/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c
index 39bfb51ef0..621c5cb6e8 100755
--- a/src/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c
+++ b/src/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c
@@ -41,7 +41,7 @@ main(void)
41 char sfn[24]; 41 char sfn[24];
42 char buf[sizeof(TEXT)]; 42 char buf[sizeof(TEXT)];
43 FILE *sfp; 43 FILE *sfp;
44 int fd, i; 44 int fd;
45 45
46 strlcpy(sfn, "/tmp/barnacles.XXXXXXXX", sizeof(sfn)); 46 strlcpy(sfn, "/tmp/barnacles.XXXXXXXX", sizeof(sfn));
47 if ((fd = mkstemp(sfn)) == -1 || 47 if ((fd = mkstemp(sfn)) == -1 ||