Skip to content

Commit ecfd8e1

Browse files
committed
examples/unix/ffi_example.py: Update for current "ffi" module API.
1 parent df453f0 commit ecfd8e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/unix/ffi_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
print()
66

77
# Declare few functions
8-
perror = libc.func("v", "perror", ["s"])
8+
perror = libc.func("v", "perror", "s")
99
time = libc.func("i", "time", "p")
10-
open = libc.func("i", "open", ["s", "i"])
10+
open = libc.func("i", "open", "si")
1111
qsort = libc.func("v", "qsort", "piip")
1212
# And one variable
1313
errno = libc.var("i", "errno")

0 commit comments

Comments
 (0)