summaryrefslogtreecommitdiffstats
path: root/libsmartcols/samples/wrap.c
diff options
context:
space:
mode:
authorRuediger Meier2016-02-22 23:30:17 +0100
committerRuediger Meier2016-02-23 03:18:09 +0100
commit5fde1d9f066ba794824ae6d8fa44462865a8f5cc (patch)
tree5b8997c70c0f566d0b06e5ac50592932eb07e6fd /libsmartcols/samples/wrap.c
parentlibfdisk: fix compiler warnings [-Wmissing-prototypes] (diff)
downloadkernel-qcow2-util-linux-5fde1d9f066ba794824ae6d8fa44462865a8f5cc.tar.gz
kernel-qcow2-util-linux-5fde1d9f066ba794824ae6d8fa44462865a8f5cc.tar.xz
kernel-qcow2-util-linux-5fde1d9f066ba794824ae6d8fa44462865a8f5cc.zip
tests: fix compiler warnings [-Wmissing-prototypes]
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'libsmartcols/samples/wrap.c')
-rw-r--r--libsmartcols/samples/wrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsmartcols/samples/wrap.c b/libsmartcols/samples/wrap.c
index 2a476fbe9..96cdff31c 100644
--- a/libsmartcols/samples/wrap.c
+++ b/libsmartcols/samples/wrap.c
@@ -46,7 +46,7 @@ static char *gen_text(const char *prefix, const char *sub_prefix, char *buf, siz
{
int x = snprintf(buf, sz, "%s-%s-", prefix, sub_prefix);
- for ( ; x < sz - 1; x++)
+ for ( ; (size_t)x < sz - 1; x++)
buf[x] = *prefix;
buf[x++] = 'x';