openbsd-ports/databases/db/v4/patches/patch-tcl_tcl_mp_c
sturm 8e215de3d1 update to db 4.2.52
from Aleksander Piotrowski <aleksander.piotrowski@nic.com.pl>
2004-01-14 19:50:15 +00:00

49 lines
1.9 KiB
Plaintext

$OpenBSD: patch-tcl_tcl_mp_c,v 1.2 2004/01/14 19:50:15 sturm Exp $
--- tcl/tcl_mp.c.orig 2003-09-04 22:45:45.000000000 +0200
+++ tcl/tcl_mp.c 2004-01-10 11:21:10.000000000 +0100
@@ -193,7 +193,7 @@ tcl_Mp(interp, objc, objv, envp, envip)
memset(newname, 0, MSG_SIZE);
while (i < objc) {
if (Tcl_GetIndexFromObj(interp, objv[i],
- mpopts, "option", TCL_EXACT, &optindex) != TCL_OK) {
+ (CONST84 char **)mpopts, "option", TCL_EXACT, &optindex) != TCL_OK) {
/*
* Reset the result so we don't get an errant
* error message if there is another error.
@@ -483,7 +483,7 @@ mp_Cmd(clientData, interp, objc, objv)
* defined above.
*/
if (Tcl_GetIndexFromObj(interp,
- objv[1], mpcmds, "command", TCL_EXACT, &cmdindex) != TCL_OK)
+ objv[1], (CONST84 char **)mpcmds, "command", TCL_EXACT, &cmdindex) != TCL_OK)
return (IS_HELP(objv[1]));
res = NULL;
@@ -613,7 +613,7 @@ tcl_MpGet(interp, objc, objv, mp, mpip)
flag = 0;
while (i < objc) {
if (Tcl_GetIndexFromObj(interp, objv[i],
- mpget, "option", TCL_EXACT, &optindex) != TCL_OK) {
+ (CONST84 char **)mpget, "option", TCL_EXACT, &optindex) != TCL_OK) {
/*
* Reset the result so we don't get an errant
* error message if there is another error.
@@ -747,7 +747,7 @@ pg_Cmd(clientData, interp, objc, objv)
* defined above.
*/
if (Tcl_GetIndexFromObj(interp,
- objv[1], pgcmds, "command", TCL_EXACT, &cmdindex) != TCL_OK)
+ objv[1], (CONST84 char **)pgcmds, "command", TCL_EXACT, &cmdindex) != TCL_OK)
return (IS_HELP(objv[1]));
res = NULL;
@@ -809,7 +809,7 @@ tcl_Pg(interp, objc, objv, page, mp, pgi
flag = 0;
while (i < objc) {
if (Tcl_GetIndexFromObj(interp, objv[i],
- pgopt, "option", TCL_EXACT, &optindex) != TCL_OK)
+ (CONST84 char **)pgopt, "option", TCL_EXACT, &optindex) != TCL_OK)
return (IS_HELP(objv[i]));
i++;
switch ((enum pgopt)optindex) {