Skip to content

Commit

Permalink
Fix SdBusSlot_close having too few arguments
Browse files Browse the repository at this point in the history
The second argument must be present even if it is not used to be
able to cast the function to `PyCFunction`.
  • Loading branch information
igo95862 committed Feb 18, 2024
1 parent f58ace9 commit 899a7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdbus/sd_bus_internals.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void SdBusSlot_dealloc(SdBusSlotObject* self) {
SD_BUS_DEALLOC_TAIL;
}

static PyObject* SdBusSlot_close(SdBusSlotObject* self) {
static PyObject* SdBusSlot_close(SdBusSlotObject* self, PyObject* Py_UNUSED(args)) {
sd_bus_slot_unref(self->slot_ref);
self->slot_ref = NULL;

Expand Down

0 comments on commit 899a7db

Please sign in to comment.