summaryrefslogtreecommitdiffstats
path: root/text-utils/pg.c
diff options
context:
space:
mode:
authorSami Kerola2011-05-24 22:56:34 +0200
committerKarel Zak2011-06-01 09:07:54 +0200
commita699625d792e92a04af540bae144d982961cebd2 (patch)
tree857357e9381e37c0f8e853406df3661007c50b1b /text-utils/pg.c
parentrev: mark signo unused in sig_handler (diff)
downloadkernel-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/pg.c')
-rw-r--r--text-utils/pg.c6
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--) {