X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Fuserprog.c;h=cbd58ee810960eb9caaccc6458e6578d95148df0;hb=b2079b62d3578a75e342c012716aa214e3228d42;hp=645dc3095a366abeb79c976d6d456b6381760a17;hpb=ac972d57a3fbb64a317b2fe19e9abde2697dbbdd;p=model-checker.git diff --git a/test/userprog.c b/test/userprog.c index 645dc30..cbd58ee 100644 --- a/test/userprog.c +++ b/test/userprog.c @@ -1,8 +1,8 @@ #include +#include +#include -#include "libthreads.h" #include "librace.h" -#include "stdatomic.h" atomic_int x; atomic_int y; @@ -21,7 +21,7 @@ static void b(void *obj) printf("r2=%u\n",r2); } -void user_main() +int user_main(int argc, char **argv) { thrd_t t1, t2; @@ -35,4 +35,6 @@ void user_main() thrd_join(t1); thrd_join(t2); printf("Thread %d is finished\n", thrd_current()); + + return 0; }