From 0f6da0c3d9f5db0df760160753a936d7d66d563c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 20 Jan 2001 00:46:25 +0000 Subject: Bring into line with proper sest suite behavior --- libc/string/strerror.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libc/string/strerror.c') 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; } -- cgit v1.2.3