summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c2
-rw-r--r--main.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/main.c b/main.c
index 638f7068..a637ef4f 100644
--- a/main.c
+++ b/main.c
@@ -980,7 +980,7 @@ woptions(struct curparse *curp, char *arg)
while (*arg) {
o = arg;
- switch (getsubopt(&arg, UNCONST(toks), &v)) {
+ switch (getsubopt(&arg, (char * const *)toks, &v)) {
case 0:
curp->wstop = 1;
break;
diff --git a/main.h b/main.h
index 9f7a5333..f53ae2ad 100644
--- a/main.h
+++ b/main.h
@@ -16,8 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define UNCONST(a) ((void *)(uintptr_t)(const void *)(a))
-
struct roff_man;
struct manoutput;