diff options
author | qwx <qwx@sciops.net> | 2023-01-22 08:33:42 +0000 |
---|---|---|
committer | qwx <qwx@sciops.net> | 2023-01-22 08:33:42 +0000 |
commit | 2bfd510b44593e0e2219017eda0f221b86016d1f (patch) | |
tree | 7eb5ff4d15bc49fcb4e90db4bb7d9f7b75aa2393 /sys/src/games/dmid.c | |
parent | 6468f848bc16cae5a74ec15337298e33a2ff1aae (diff) |
games/dmid: no longer threaded
Diffstat (limited to 'sys/src/games/dmid.c')
-rw-r--r-- | sys/src/games/dmid.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/src/games/dmid.c b/sys/src/games/dmid.c index b007a7580..fb4213275 100644 --- a/sys/src/games/dmid.c +++ b/sys/src/games/dmid.c @@ -1,7 +1,6 @@ #include <u.h> #include <libc.h> #include <bio.h> -#include <thread.h> typedef struct Inst Inst; typedef struct Opl Opl; @@ -436,7 +435,7 @@ ev(Trk *x, vlong t) } m = get8(x); switch(n){ - case 0x2f: dprint("it\'s over.\n"); return -1; + case 0x2f: dprint(" -- so long!\n"); return -1; case 0x51: tempo = get16(x) << 8; tempo |= get8(x); break; default: skip(x, m); } @@ -527,7 +526,7 @@ usage(void) } void -threadmain(int argc, char **argv) +main(int argc, char **argv) { int n, end, debug; char *i; @@ -566,7 +565,7 @@ threadmain(int argc, char **argv) for(;;){ getvar(nil); if(ev(nil, 0) < 0) - threadexits(nil); + exits(nil); } } for(end=0; !end;){ |