X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fpython%2Fpy-breakpoint.c;h=ba3b4f0fc38f19973bc866526df21203d12ac57b;hb=6c28e44a359e9f6cf455ddff0009ca99406f7224;hp=f41d88dbf51560c07b57cb36622b7f0f74539c51;hpb=2c3fc25dd18d3afb4b4cb494c4803fdfbf00ae9b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index f41d88dbf5..ba3b4f0fc3 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -1138,9 +1138,7 @@ gdbpy_initialize_breakpoints (void) /* Add breakpoint types constants. */ for (i = 0; pybp_codes[i].name; ++i) { - if (PyModule_AddIntConstant (gdb_module, - /* Cast needed for Python 2.4. */ - (char *) pybp_codes[i].name, + if (PyModule_AddIntConstant (gdb_module, pybp_codes[i].name, pybp_codes[i].code) < 0) return -1; } @@ -1148,9 +1146,7 @@ gdbpy_initialize_breakpoints (void) /* Add watchpoint types constants. */ for (i = 0; pybp_watch_types[i].name; ++i) { - if (PyModule_AddIntConstant (gdb_module, - /* Cast needed for Python 2.4. */ - (char *) pybp_watch_types[i].name, + if (PyModule_AddIntConstant (gdb_module, pybp_watch_types[i].name, pybp_watch_types[i].code) < 0) return -1; }