From 270e7ed83a884df4d028c42cfd58a5ec4dc10c8e Mon Sep 17 00:00:00 2001 From: dim Date: Sat, 17 Dec 2011 16:10:14 +0000 Subject: 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 --- contrib/less/command.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib/less/command.c') diff --git a/contrib/less/command.c b/contrib/less/command.c index 41c3869..e8c4994 100644 --- a/contrib/less/command.c +++ b/contrib/less/command.c @@ -1461,7 +1461,7 @@ commands() error("Command not available", NULL_PARG); break; } - start_mca(A_EXAMINE, "Examine: ", ml_examine, 0); + start_mca(A_EXAMINE, "Examine: ", (void*)ml_examine, 0); c = getcc(); goto again; #else @@ -1491,7 +1491,7 @@ commands() error("WARNING: This file was viewed via LESSOPEN", NULL_PARG); } - start_mca(A_SHELL, "!", ml_shell, 0); + start_mca(A_SHELL, "!", (void*)ml_shell, 0); /* * Expand the editor prototype string * and pass it to the system to execute. @@ -1655,7 +1655,7 @@ commands() error("Command not available", NULL_PARG); break; } - start_mca(A_SHELL, "!", ml_shell, 0); + start_mca(A_SHELL, "!", (void*)ml_shell, 0); c = getcc(); goto again; #else @@ -1706,7 +1706,7 @@ commands() if (badmark(c)) break; pipec = c; - start_mca(A_PIPE, "!", ml_shell, 0); + start_mca(A_PIPE, "!", (void*)ml_shell, 0); c = getcc(); goto again; #else -- cgit v1.1