summaryrefslogtreecommitdiffstats
path: root/winsup/testsuite/winsup.api/ltp/write03.c
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-24 01:09:40 +0000
committerChristopher Faylor <me@cgf.cx>2003-01-24 01:09:40 +0000
commit31d7abadfee7da27924f7130e470ea701b39bc3e (patch)
tree71dff30bdf30a42e0ad50a3b2eef3b00e8c95d56 /winsup/testsuite/winsup.api/ltp/write03.c
parent1905b7393cf9555bfbebd2f6b345877609760dff (diff)
downloadcygnal-31d7abadfee7da27924f7130e470ea701b39bc3e.tar.gz
cygnal-31d7abadfee7da27924f7130e470ea701b39bc3e.tar.bz2
cygnal-31d7abadfee7da27924f7130e470ea701b39bc3e.zip
Perform more C warning fixup on all C source files and headers.
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/write03.c')
-rw-r--r--winsup/testsuite/winsup.api/ltp/write03.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/write03.c b/winsup/testsuite/winsup.api/ltp/write03.c
index 5343c6484..7d6f1f945 100644
--- a/winsup/testsuite/winsup.api/ltp/write03.c
+++ b/winsup/testsuite/winsup.api/ltp/write03.c
@@ -47,7 +47,6 @@
* NONE
*/
-#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
@@ -57,16 +56,17 @@
/* 0 terminated list of expected errnos */
int exp_enos[] = {14,0};
-char *TCID = "write03";
+const char *TCID = "write03";
int TST_TOTAL = 1;
extern int Tst_count;
void setup(void);
-void cleanup(void);
+void cleanup(void) __attribute__((noreturn));
int fd = -1;
char filename[100];
+int
main(int argc, char **argv)
{
int lc; /* loop counter */
@@ -90,7 +90,6 @@ main(int argc, char **argv)
/* reset Tst_count in case we are looping */
Tst_count = 0;
-block1:
tst_resm(TINFO, "Enter Block 1: test to check if write "
"corrupts the file when write fails");