summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko2011-08-28 05:31:49 +0200
committerDenys Vlasenko2011-08-28 05:31:49 +0200
commit24915117a284c5536c9c707fc34ec9e7bf331f32 (patch)
tree2e9dd70792921647e31851667bbee13994dc6408 /miscutils
parent1285437217a60194186b2c66a0422205b2dedd08 (diff)
downloadbusybox-24915117a284c5536c9c707fc34ec9e7bf331f32.zip
busybox-24915117a284c5536c9c707fc34ec9e7bf331f32.tar.gz
Fixes for warnings in FreeBSD build
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/less.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/less.c b/miscutils/less.c
index 2c6a793..045fd2d 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -721,8 +721,8 @@ static void print_found(const char *line)
while (match_status == 0) {
char *new = xasprintf("%s%.*s"HIGHLIGHT"%.*s"NORMAL,
growline ? growline : "",
- match_structs.rm_so, str,
- match_structs.rm_eo - match_structs.rm_so,
+ (int)match_structs.rm_so, str,
+ (int)(match_structs.rm_eo - match_structs.rm_so),
str + match_structs.rm_so);
free(growline);
growline = new;