diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | include/stdio.h | 1 | ||||
-rw-r--r-- | nptl/tst-initializers1.c | 7 | ||||
-rw-r--r-- | test-skeleton.c | 3 |
4 files changed, 14 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2015-05-18 Arjun Shankar <arjun.is@lostca.se> + + * include/stdio.h: Define __need_wint_t. + * test-skeleton.c: Avoid `for' loop initial declaration. + * nptl/tst-initializers1.c: Use test-skeleton.c. + 2015-05-17 Adhemerval Zanella <adhemerval.zanella@linaro.org> [BZ #18418] diff --git a/include/stdio.h b/include/stdio.h index 0010607..043b2b5 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -76,6 +76,7 @@ extern FILE *__old_tmpfile (void); # define __need_size_t +# define __need_wint_t # include <stddef.h> /* Generate a unique file name (and possibly open it). */ extern int __path_search (char *__tmpl, size_t __tmpl_len, diff --git a/nptl/tst-initializers1.c b/nptl/tst-initializers1.c index e09f7a9..5119ebf 100644 --- a/nptl/tst-initializers1.c +++ b/nptl/tst-initializers1.c @@ -30,8 +30,8 @@ pthread_rwlock_t rwl_writer = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP; pthread_cond_t cond = PTHREAD_COND_INITIALIZER; -int -main (void) +static int +do_test (void) { if (mtx_normal.__data.__kind != PTHREAD_MUTEX_TIMED_NP) return 1; @@ -55,3 +55,6 @@ main (void) return 7; return 0; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" diff --git a/test-skeleton.c b/test-skeleton.c index 43fc236..1332c94 100644 --- a/test-skeleton.c +++ b/test-skeleton.c @@ -352,8 +352,9 @@ main (int argc, char *argv[]) if (temp_name_list != NULL) { + struct temp_name_list *n; fprintf (f, "temp_files=(\n"); - for (struct temp_name_list *n = temp_name_list; + for (n = temp_name_list; n != NULL; n = (struct temp_name_list *) n->q.q_forw) fprintf (f, " '%s'\n", n->name); |