summaryrefslogtreecommitdiffstats
path: root/contrib/less/prompt.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-17 16:10:14 +0000
committerdim <dim@FreeBSD.org>2011-12-17 16:10:14 +0000
commit270e7ed83a884df4d028c42cfd58a5ec4dc10c8e (patch)
tree6da449ba08d09acf179173de4944f0aeb51d8dd6 /contrib/less/prompt.c
parentfbf65ae4d96ff39ba7fb93a69693826ee378cd3c (diff)
downloadFreeBSD-src-270e7ed83a884df4d028c42cfd58a5ec4dc10c8e.zip
FreeBSD-src-270e7ed83a884df4d028c42cfd58a5ec4dc10c8e.tar.gz
In contrib/less, cast away const a bunch of times, to make it build
without conversion warnings. This code desparately needs a good dose of const poison, but fixing all the issues would be rather disruptive. MFC after: 1 week
Diffstat (limited to 'contrib/less/prompt.c')
-rw-r--r--contrib/less/prompt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/less/prompt.c b/contrib/less/prompt.c
index daad00d..00d3152 100644
--- a/contrib/less/prompt.c
+++ b/contrib/less/prompt.c
@@ -555,7 +555,7 @@ pr_expand(proto, maxwidth)
public char *
eq_message()
{
- return (pr_expand(eqproto, 0));
+ return (pr_expand((char*)eqproto, 0));
}
/*
@@ -572,7 +572,7 @@ pr_string()
type = (!less_is_more) ? pr_type : pr_type ? 0 : 1;
prompt = pr_expand((ch_getflags() & CH_HELPFILE) ?
- hproto : prproto[type],
+ (char*)hproto : prproto[type],
sc_width-so_s_width-so_e_width-2);
new_file = 0;
return (prompt);
@@ -584,5 +584,5 @@ pr_string()
public char *
wait_message()
{
- return (pr_expand(wproto, sc_width-so_s_width-so_e_width-2));
+ return (pr_expand((char*)wproto, sc_width-so_s_width-so_e_width-2));
}
OpenPOWER on IntegriCloud