summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-20 00:46:25 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-20 00:46:25 +0000
commit0f6da0c3d9f5db0df760160753a936d7d66d563c (patch)
tree2551900bcd41126c724b2be9deffd2d1c6a12960 /libc
parent844b89dbfdd41ced4666d2bb99ce0bf99503524b (diff)
Bring into line with proper sest suite behavior
Diffstat (limited to 'libc')
-rw-r--r--libc/string/strerror.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/string/strerror.c b/libc/string/strerror.c
index 36c467ef4..e157835c8 100644
--- a/libc/string/strerror.c
+++ b/libc/string/strerror.c
@@ -98,14 +98,16 @@ int main(void)
p = strerror(INT_MIN);
j = strlen(p)+1;
- if (j > max) max = j;
- printf("strerror.c - Test of INT_MIN: <%s> %d\n", p, j);
+ if (j > max) {
+ max = j;
+ printf("strerror.c - Test of INT_MIN: <%s> %d\n", p, j);
+ }
if (sizeof(retbuf) != max) {
printf("Error: strerror.c - dimension of retbuf should be = %d\n", max);
retcode = EXIT_FAILURE;
}
- printf("strerror.c - dimension of retbuf correct at %d\n", max);
+ printf("Passed.\n");
return retcode;
}