examples/unix/ffi_example.py: Update for current "ffi" module API.

This commit is contained in:
Paul Sokolovsky 2016-06-17 19:21:37 +03:00
parent df453f0652
commit ecfd8e102d
1 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,9 @@ print("libc:", libc)
print()
# Declare few functions
perror = libc.func("v", "perror", ["s"])
perror = libc.func("v", "perror", "s")
time = libc.func("i", "time", "p")
open = libc.func("i", "open", ["s", "i"])
open = libc.func("i", "open", "si")
qsort = libc.func("v", "qsort", "piip")
# And one variable
errno = libc.var("i", "errno")