summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2008-09-06 02:45:00 -0400
committerSøren Sandmann <sandmann@redhat.com>2008-09-06 02:45:00 -0400
commitcffbece06410465133b783ca83c926685ffeb686 (patch)
tree5f59a08c9d71560f0c02f171bdd561c4f7f98b35 /example.c
parentc0711460dadf97843f66d84448358d1db01ac7c9 (diff)
Add watch and dbw
Diffstat (limited to 'example.c')
-rw-r--r--example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example.c b/example.c
index d8aa9bf..0a30d19 100644
--- a/example.c
+++ b/example.c
@@ -1,5 +1,5 @@
#include <stdio.h>
-#include "libnul.h"
+#include "invoke.h"
int
main ()
@@ -11,9 +11,9 @@ main ()
};
Arg ret;
- FunDef *def = fun_def_new (TYPE_INT, 2, arg_types);
+ FunDef *def = fun_def_new ((Function)printf, TYPE_INT, 2, arg_types);
- ret = fun_def_invoke (def, (Function)printf, args);
+ ret = fun_def_invoke (def, args);
printf ("returned: %d\n", ret.v_int);