From ecfd8e102d07a1558ffca571dbcbdf309deecf9a Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 17 Jun 2016 19:21:37 +0300 Subject: [PATCH] examples/unix/ffi_example.py: Update for current "ffi" module API. --- examples/unix/ffi_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/unix/ffi_example.py b/examples/unix/ffi_example.py index bc3919d40a..e29ee8e0c5 100644 --- a/examples/unix/ffi_example.py +++ b/examples/unix/ffi_example.py @@ -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")