summaryrefslogtreecommitdiffstats
path: root/contrib/less/command.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-01-01 20:09:05 +0000
committerdim <dim@FreeBSD.org>2012-01-01 20:09:05 +0000
commit46cdaf90c3e6a08ea00152956ec665dd2326a247 (patch)
tree54ccebf99257d3835bf0732b07adee84c4c0abe6 /contrib/less/command.c
parentc3ff56243b9d716e74544bef440aa812f115faed (diff)
downloadFreeBSD-src-46cdaf90c3e6a08ea00152956ec665dd2326a247.zip
FreeBSD-src-46cdaf90c3e6a08ea00152956ec665dd2326a247.tar.gz
Revert r228645, which casts away a number of const conversion warnings
in contrib/less. I will fix those more properly in the next commit.
Diffstat (limited to 'contrib/less/command.c')
-rw-r--r--contrib/less/command.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/less/command.c b/contrib/less/command.c
index e8c4994..41c3869 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: ", (void*)ml_examine, 0);
+ start_mca(A_EXAMINE, "Examine: ", 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, "!", (void*)ml_shell, 0);
+ start_mca(A_SHELL, "!", 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, "!", (void*)ml_shell, 0);
+ start_mca(A_SHELL, "!", ml_shell, 0);
c = getcc();
goto again;
#else
@@ -1706,7 +1706,7 @@ commands()
if (badmark(c))
break;
pipec = c;
- start_mca(A_PIPE, "!", (void*)ml_shell, 0);
+ start_mca(A_PIPE, "!", ml_shell, 0);
c = getcc();
goto again;
#else
OpenPOWER on IntegriCloud