about summary refs log tree commit diff
path: root/posix/wordexp-test.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-02-26 19:32:00 +0000
committerUlrich Drepper <drepper@redhat.com>2001-02-26 19:32:00 +0000
commit00b16c4a62bcd83f8fe2adc845f512c003d8ace2 (patch)
tree9a3dc54055d20f96a6abfbe638e861291fa4b332 /posix/wordexp-test.c
parentc08bc50a60a92e8d32f302ea411312bc438f05ef (diff)
downloadglibc-00b16c4a62bcd83f8fe2adc845f512c003d8ace2.tar.gz
glibc-00b16c4a62bcd83f8fe2adc845f512c003d8ace2.tar.xz
glibc-00b16c4a62bcd83f8fe2adc845f512c003d8ace2.zip
Update.
	* posix/wordexp-test.c (testit): Remove warnings.
Diffstat (limited to 'posix/wordexp-test.c')
-rw-r--r--posix/wordexp-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/posix/wordexp-test.c b/posix/wordexp-test.c
index 35a9725a4c..08f46e72ba 100644
--- a/posix/wordexp-test.c
+++ b/posix/wordexp-test.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -34,7 +34,7 @@ struct test_case_struct
   const char *env;
   const char *words;
   int flags;
-  int wordc;
+  size_t wordc;
   const char *wordv[10];
   const char *ifs;
 } test_case[] =
@@ -399,11 +399,11 @@ testit (struct test_case_struct *tc)
   if (bzzzt)
     {
       printf ("FAILED\n");
-      printf ("Test words: <%s>, need retval %d, wordc %d\n",
+      printf ("Test words: <%s>, need retval %d, wordc %Zd\n",
 	      tc->words, tc->retval, tc->wordc);
       if (start_offs != 0)
 	printf ("(preceded by %d NULLs)\n", start_offs);
-      printf ("Got retval %d, wordc %d: ", retval, we.we_wordc);
+      printf ("Got retval %d, wordc %Zd: ", retval, we.we_wordc);
       if (retval == 0 || retval == WRDE_NOSPACE)
 	{
 	  for (i = 0; i < we.we_wordc + start_offs; ++i)