diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-25 00:00:03 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-25 00:00:03 +0000 |
| commit | bcb8de973abcbf6bc0cb1c46e764276c34fa5380 (patch) | |
| tree | 7a0e3eb9ad84a1ecf8d1bb11d0d48d32ebe85e27 /src | |
| parent | 053bb2d100c3db55a68a09f25ba96e6b1a149a96 (diff) | |
const cast to the python function
Diffstat (limited to 'src')
| -rw-r--r-- | src/openbox.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openbox.cc b/src/openbox.cc index 75d56041..7a025242 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -155,7 +155,7 @@ Openbox::Openbox(int argc, char **argv) if (!rcpyfd) { printf("failed to load python file %s\n", _scriptfilepath.c_str()); } else { - PyRun_SimpleFile(rcpyfd, _scriptfilepath.c_str()); + PyRun_SimpleFile(rcpyfd, const_cast<char*>(_scriptfilepath.c_str())); fclose(rcpyfd); } |
