diff -u python/svipc_module.c.orig python/svipc_module.c
old
|
new
|
|
233 | 233 | |
234 | 234 | static char *kwlist[] = {"key", "id", NULL}; |
235 | 235 | |
236 | | if (PyArg_ParseTupleAndKeywords(args, kwds,"is", kwlist, &key, &id)) |
| 236 | if (!PyArg_ParseTupleAndKeywords(args, kwds,"is", kwlist, &key, &id)) |
237 | 237 | PYTHON_SVIPC_USAGE("shm_free(key, id)"); |
238 | 238 | |
239 | 239 | int status = svipc_shm_free(key, id); |
… |
… |
|
259 | 259 | |
260 | 260 | static char *kwlist[] = {"key", NULL}; |
261 | 261 | |
262 | | if (PyArg_ParseTupleAndKeywords(args, kwds,"i", kwlist, &key)) |
| 262 | if (!PyArg_ParseTupleAndKeywords(args, kwds,"i", kwlist, &key)) |
263 | 263 | PYTHON_SVIPC_USAGE("shm_cleanup(key)"); |
264 | 264 | |
265 | 265 | int status = svipc_shm_cleanup(key); |
… |
… |
|
327 | 327 | |
328 | 328 | static char *kwlist[] = {"key", NULL}; |
329 | 329 | |
330 | | if (PyArg_ParseTupleAndKeywords(args, kwds,"i", kwlist, &key)) |
| 330 | if (!PyArg_ParseTupleAndKeywords(args, kwds,"i", kwlist, &key)) |
331 | 331 | PYTHON_SVIPC_USAGE("sem_cleanup(key)"); |
332 | 332 | |
333 | 333 | int status = svipc_sem_cleanup(key); |