Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / tests / mod.c
blob0226c990994a7fd50aa976b8d1a07154d4864380
2 /* Code for module to be loaded by test63. */
4 #include <stdlib.h>
5 #include <stdio.h>
6 #include <dlfcn.h>
8 #include "magic.h"
10 long cookie = 0;
12 void exithandler(void);
14 long modfunction(long v1, long *argcookie, long v2) {
15 if(v1 != MAGIC4 || v2 != MAGIC5) {
16 fprintf(stderr, "wrong args to modfunction\n");
17 exit(1);
19 *argcookie = MAGIC3;
20 cookie = MAGIC2;
21 return MAGIC1;
24 void exithandler(void) {
25 /* OK */