Skip to content

Commit 296310c

Browse files
author
ldx
committed
Fix the method signature of the alias() callback.
1 parent 04eaff0 commit 296310c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

iptc/xtables.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ class _xtables_match_v10(ct.Structure):
386386
("save", ct.CFUNCTYPE(None, ct.c_void_p,
387387
ct.POINTER(xt_entry_match))),
388388
# Print match name or alias
389-
("alias", ct.CFUNCTYPE(ct.c_char_p, ct.c_void_p,
390-
ct.POINTER(xt_entry_match))),
389+
("alias", ct.CFUNCTYPE(ct.c_char_p, ct.POINTER(xt_entry_match))),
391390
# pointer to list of extra command-line options
392391
("extra_opts", ct.POINTER(option)),
393392

@@ -636,8 +635,7 @@ class _xtables_target_v10(ct.Structure):
636635
("save", ct.CFUNCTYPE(None, ct.c_void_p,
637636
ct.POINTER(xt_entry_target))),
638637
# Print target name or alias
639-
("alias", ct.CFUNCTYPE(ct.c_char_p, ct.c_void_p,
640-
ct.POINTER(xt_entry_target))),
638+
("alias", ct.CFUNCTYPE(ct.c_char_p, ct.POINTER(xt_entry_target))),
641639
# pointer to list of extra command-line options
642640
("extra_opts", ct.POINTER(option)),
643641

0 commit comments

Comments
 (0)