diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-08-28 05:31:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-08-28 05:31:49 +0200 |
commit | 24915117a284c5536c9c707fc34ec9e7bf331f32 (patch) | |
tree | 2e9dd70792921647e31851667bbee13994dc6408 /miscutils/less.c | |
parent | 1285437217a60194186b2c66a0422205b2dedd08 (diff) | |
download | busybox-w32-24915117a284c5536c9c707fc34ec9e7bf331f32.tar.gz busybox-w32-24915117a284c5536c9c707fc34ec9e7bf331f32.tar.bz2 busybox-w32-24915117a284c5536c9c707fc34ec9e7bf331f32.zip |
Fixes for warnings in FreeBSD build
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/less.c')
-rw-r--r-- | miscutils/less.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 2c6a79326..045fd2db3 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -721,8 +721,8 @@ static void print_found(const char *line) | |||
721 | while (match_status == 0) { | 721 | while (match_status == 0) { |
722 | char *new = xasprintf("%s%.*s"HIGHLIGHT"%.*s"NORMAL, | 722 | char *new = xasprintf("%s%.*s"HIGHLIGHT"%.*s"NORMAL, |
723 | growline ? growline : "", | 723 | growline ? growline : "", |
724 | match_structs.rm_so, str, | 724 | (int)match_structs.rm_so, str, |
725 | match_structs.rm_eo - match_structs.rm_so, | 725 | (int)(match_structs.rm_eo - match_structs.rm_so), |
726 | str + match_structs.rm_so); | 726 | str + match_structs.rm_so); |
727 | free(growline); | 727 | free(growline); |
728 | growline = new; | 728 | growline = new; |