about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/test-canon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/test-canon.c b/stdlib/test-canon.c
index 6f0171d200..8d04bb6ba0 100644
--- a/stdlib/test-canon.c
+++ b/stdlib/test-canon.c
@@ -45,7 +45,7 @@ struct {
 
 struct {
   const char * in, * out, * resolved;
-  int errno;
+  int error;
 } tests[] = {
   /*  0 */
   {"/",					"/"},
@@ -145,10 +145,10 @@ main (int argc, char ** argv)
 	  continue;
 	}
 
-      if (!tests[i].out && errno != tests[i].errno)
+      if (!tests[i].out && errno != tests[i].error)
 	{
 	  printf ("%s: flunked test %d (expected errno %d, got %d)\n",
-		  argv[0], i, tests[i].errno, errno);
+		  argv[0], i, tests[i].errno, error);
 	  ++errors;
 	  continue;
 	}