summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Epler <jepler@unpythonic.net>2013-10-09 08:05:43 -0500
committerJeff Epler <jepler@unpythonic.net>2013-10-09 08:05:43 -0500
commit92ce7f709f1ceb2293d0e7aca2e65711c83b0729 (patch)
treeeb36c1f92c7082c31eeb6ea685d9bee6a2e082bf
parentd4d4b07fb3a95459c5e41069825a5036e127586a (diff)
downloadlinuxcnc-92ce7f709f1ceb2293d0e7aca2e65711c83b0729.tar.gz
linuxcnc-92ce7f709f1ceb2293d0e7aca2e65711c83b0729.zip
axis: Don't directly use trp->result
This has been deprecated in Tcl for a very long time, and will reportedly become a build error in Tcl 8.6. (sfbug#332)
-rw-r--r--src/emc/usr_intf/axis/extensions/_toglmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emc/usr_intf/axis/extensions/_toglmodule.c b/src/emc/usr_intf/axis/extensions/_toglmodule.c
index 2eff686eb..6c872b5fe 100644
--- a/src/emc/usr_intf/axis/extensions/_toglmodule.c
+++ b/src/emc/usr_intf/axis/extensions/_toglmodule.c
@@ -48,7 +48,7 @@ PyObject *install(PyObject *s, PyObject *arg) {
return Py_None;
}
if (Tcl_PkgProvide(trp, "Togl", TOGL_VERSION) != TCL_OK) {
- PyErr_Format(PyExc_RuntimeError, "Tcl_PkgProvide failed: %s", trp->result);
+ PyErr_Format(PyExc_RuntimeError, "Tcl_PkgProvide failed: %s", Tcl_GetStringResult(trp));
return NULL;
}