diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-06 18:32:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-06 18:32:19 +0000 |
commit | b6d8272551435098c716c546a5201206517e5da9 (patch) | |
tree | 223438db91511a96151bc1450143b4c649c40d08 /test-wchar.c | |
parent | eec76d50a016de5e9c4e0d3504b148892a36aabf (diff) | |
download | mandoc-b6d8272551435098c716c546a5201206517e5da9.tar.gz mandoc-b6d8272551435098c716c546a5201206517e5da9.tar.zst mandoc-b6d8272551435098c716c546a5201206517e5da9.zip |
modernize style: "return" is not a function
Diffstat (limited to 'test-wchar.c')
-rw-r--r-- | test-wchar.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test-wchar.c b/test-wchar.c index 2cbb49dd..a096705e 100644 --- a/test-wchar.c +++ b/test-wchar.c @@ -1,4 +1,4 @@ -/* $Id: test-wchar.c,v 1.2 2014/08/28 10:38:06 schwarze Exp $ */ +/* $Id: test-wchar.c,v 1.3 2015/10/06 18:32:20 schwarze Exp $ */ /* * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> * @@ -32,32 +32,32 @@ main(void) if (setlocale(LC_ALL, "") == NULL) { fputs("setlocale(LC_ALL, \"\") failed\n", stderr); - return(1); + return 1; } if (setlocale(LC_CTYPE, "en_US.UTF-8") == NULL) { fputs("setlocale(LC_CTYPE, \"en_US.UTF-8\") failed\n", stderr); - return(1); + return 1; } if (sizeof(wchar_t) < 4) { fprintf(stderr, "wchar_t is only %zu bytes\n", sizeof(wchar_t)); - return(1); + return 1; } if ((width = wcwidth(L' ')) != 1) { fprintf(stderr, "wcwidth(L' ') returned %d\n", width); - return(1); + return 1; } dup2(STDERR_FILENO, STDOUT_FILENO); wc = L'*'; if (putwchar(wc) != (wint_t)wc) { fputs("bad putwchar return value\n", stderr); - return(1); + return 1; } - return(0); + return 0; } |