diff options
author | Ruediger Meier <ruediger.meier@ga-group.nl> | 2016-02-22 23:30:17 +0100 |
---|---|---|
committer | Ruediger Meier <ruediger.meier@ga-group.nl> | 2016-02-23 03:18:09 +0100 |
commit | 5fde1d9f066ba794824ae6d8fa44462865a8f5cc (patch) | |
tree | 5b8997c70c0f566d0b06e5ac50592932eb07e6fd /libsmartcols | |
parent | 74272f00e18158b3a007bd279f36115b6be34dad (diff) | |
download | util-linux-5fde1d9f066ba794824ae6d8fa44462865a8f5cc.tar.gz |
tests: fix compiler warnings [-Wmissing-prototypes]
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'libsmartcols')
-rw-r--r-- | libsmartcols/samples/wrap.c | 2 |
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'; |