diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/nissy_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/nissy_module.c b/python/nissy_module.c index da0b1c5..e92cfd9 100644 --- a/python/nissy_module.c +++ b/python/nissy_module.c | |||
| @@ -421,7 +421,7 @@ static struct PyModuleDef nissy_python_module = { | |||
| 421 | }; | 421 | }; |
| 422 | 422 | ||
| 423 | static void | 423 | static void |
| 424 | log_stdout(const char *str) | 424 | log_stdout(const char *str, void *unused) |
| 425 | { | 425 | { |
| 426 | fprintf(stderr, "%s", str); | 426 | fprintf(stderr, "%s", str); |
| 427 | } | 427 | } |
| @@ -429,7 +429,7 @@ log_stdout(const char *str) | |||
| 429 | PyMODINIT_FUNC PyInit_nissy_python_module(void) { | 429 | PyMODINIT_FUNC PyInit_nissy_python_module(void) { |
| 430 | PyObject *module; | 430 | PyObject *module; |
| 431 | 431 | ||
| 432 | nissy_setlogger(log_stdout); | 432 | nissy_setlogger(log_stdout, NULL); |
| 433 | module = PyModule_Create(&nissy_python_module); | 433 | module = PyModule_Create(&nissy_python_module); |
| 434 | 434 | ||
| 435 | PyModule_AddStringConstant(module, "solved_cube", NISSY_SOLVED_CUBE); | 435 | PyModule_AddStringConstant(module, "solved_cube", NISSY_SOLVED_CUBE); |
