summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2008-09-07 10:26:19 -0400
committerSøren Sandmann <sandmann@redhat.com>2008-09-07 10:26:19 -0400
commit51acedbb6059e3d413a449fb9239d67557588067 (patch)
treef6f56119c79cea5907269eb6036c908cedb1eb2a /example.c
parent3605605c046d34131a177d0c40bfe73d0acee48d (diff)
Update to latest dbw/invoke
Diffstat (limited to 'example.c')
-rw-r--r--example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example.c b/example.c
index 1b0bea2..d8aa9bf 100644
--- a/example.c
+++ b/example.c
@@ -11,9 +11,9 @@ main ()
};
Arg ret;
- FunDef *def = fun_def_new ((Function)printf, TYPE_INT, 2, arg_types);
+ FunDef *def = fun_def_new (TYPE_INT, 2, arg_types);
- ret = fun_def_invoke (def, args);
+ ret = fun_def_invoke (def, (Function)printf, args);
printf ("returned: %d\n", ret.v_int);