diff options
author | Sami Kerola | 2011-05-24 22:56:34 +0200 |
---|---|---|
committer | Karel Zak | 2011-06-01 09:07:54 +0200 |
commit | a699625d792e92a04af540bae144d982961cebd2 (patch) | |
tree | 857357e9381e37c0f8e853406df3661007c50b1b /text-utils | |
parent | rev: mark signo unused in sig_handler (diff) | |
download | kernel-qcow2-util-linux-a699625d792e92a04af540bae144d982961cebd2.tar.gz kernel-qcow2-util-linux-a699625d792e92a04af540bae144d982961cebd2.tar.xz kernel-qcow2-util-linux-a699625d792e92a04af540bae144d982961cebd2.zip |
pg: return value warning fix
void function 'makeprint' should not return void expression
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils')
-rw-r--r-- | text-utils/pg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/text-utils/pg.c b/text-utils/pg.c index 9fbbc0bbf..bf4ab6d11 100644 --- a/text-utils/pg.c +++ b/text-utils/pg.c @@ -856,8 +856,10 @@ static void makeprint(char *s, size_t l) { #ifdef HAVE_WIDECHAR - if (MB_CUR_MAX > 1) - return makeprint_for_mb(s, l); + if (MB_CUR_MAX > 1) { + makeprint_for_mb(s, l); + return; + } #endif while (l--) { |