$OpenBSD: patch-tcl_tcl_db_pkg_c,v 1.3 2007/10/26 14:06:02 steven Exp $ --- tcl/tcl_db_pkg.c.orig Mon Jul 9 19:38:45 2007 +++ tcl/tcl_db_pkg.c Sat Sep 15 12:39:57 2007 @@ -210,7 +210,7 @@ berkdb_Cmd(notused, interp, objc, objv) * defined above. */ if (Tcl_GetIndexFromObj(interp, - objv[1], berkdbcmds, "command", TCL_EXACT, &cmdindex) != TCL_OK) + objv[1], (CONST84 char **)berkdbcmds, "command", TCL_EXACT, &cmdindex) != TCL_OK) return (IS_HELP(objv[1])); res = NULL; switch ((enum berkdbcmds)cmdindex) { @@ -577,7 +577,7 @@ bdb_EnvOpen(interp, objc, objv, ip, env) server_to = client_to = 0; i = 2; while (i < objc) { - if (Tcl_GetIndexFromObj(interp, objv[i++], envopen, "option", + if (Tcl_GetIndexFromObj(interp, objv[i++], (CONST84 char **)envopen, "option", TCL_EXACT, &optindex) != TCL_OK) { Tcl_ResetResult(interp); continue; @@ -650,7 +650,7 @@ bdb_EnvOpen(interp, objc, objv, ip, env) i = 2; while (i < objc) { Tcl_ResetResult(interp); - if (Tcl_GetIndexFromObj(interp, objv[i], envopen, "option", + if (Tcl_GetIndexFromObj(interp, objv[i], (CONST84 char **)envopen, "option", TCL_EXACT, &optindex) != TCL_OK) { result = IS_HELP(objv[i]); goto error; @@ -1579,7 +1579,7 @@ bdb_DbOpen(interp, objc, objv, ip, dbp) */ i = 2; while (i < objc) { - if (Tcl_GetIndexFromObj(interp, objv[i++], bdbenvopen, + if (Tcl_GetIndexFromObj(interp, objv[i++], (CONST84 char **)bdbenvopen, "option", TCL_EXACT, &optindex) != TCL_OK) { /* * Reset the result so we don't get @@ -1641,7 +1641,7 @@ bdb_DbOpen(interp, objc, objv, ip, dbp) i = 2; while (i < objc) { Tcl_ResetResult(interp); - if (Tcl_GetIndexFromObj(interp, objv[i], bdbopen, "option", + if (Tcl_GetIndexFromObj(interp, objv[i], (CONST84 char **)bdbopen, "option", TCL_EXACT, &optindex) != TCL_OK) { arg = Tcl_GetStringFromObj(objv[i], NULL); if (arg[0] == '-') { @@ -2548,7 +2548,7 @@ bdb_DbRemove(interp, objc, objv) */ i = 2; while (i < objc) { - if (Tcl_GetIndexFromObj(interp, objv[i], bdbrem, + if (Tcl_GetIndexFromObj(interp, objv[i], (CONST84 char **)bdbrem, "option", TCL_EXACT, &optindex) != TCL_OK) { arg = Tcl_GetStringFromObj(objv[i], NULL); if (arg[0] == '-') { @@ -2768,7 +2768,7 @@ bdb_DbRename(interp, objc, objv) */ i = 2; while (i < objc) { - if (Tcl_GetIndexFromObj(interp, objv[i], bdbmv, + if (Tcl_GetIndexFromObj(interp, objv[i], (CONST84 char **)bdbmv, "option", TCL_EXACT, &optindex) != TCL_OK) { arg = Tcl_GetStringFromObj(objv[i], NULL); if (arg[0] == '-') { @@ -3005,7 +3005,7 @@ bdb_DbVerify(interp, objc, objv) */ i = 2; while (i < objc) { - if (Tcl_GetIndexFromObj(interp, objv[i], bdbverify, + if (Tcl_GetIndexFromObj(interp, objv[i], (CONST84 char **)bdbverify, "option", TCL_EXACT, &optindex) != TCL_OK) { arg = Tcl_GetStringFromObj(objv[i], NULL); if (arg[0] == '-') { @@ -3224,7 +3224,7 @@ bdb_Version(interp, objc, objv) */ i = 2; while (i < objc) { - if (Tcl_GetIndexFromObj(interp, objv[i], bdbver, + if (Tcl_GetIndexFromObj(interp, objv[i], (CONST84 char **)bdbver, "option", TCL_EXACT, &optindex) != TCL_OK) { arg = Tcl_GetStringFromObj(objv[i], NULL); if (arg[0] == '-') { @@ -3452,7 +3452,7 @@ bdb_DbUpgrade(interp, objc, objv) i = 2; while (i < objc) { - if (Tcl_GetIndexFromObj(interp, objv[i], bdbupg, + if (Tcl_GetIndexFromObj(interp, objv[i], (CONST84 char **)bdbupg, "option", TCL_EXACT, &optindex) != TCL_OK) { arg = Tcl_GetStringFromObj(objv[i], NULL); if (arg[0] == '-') {