X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=sst.c;h=b60b57e5621dab63dc1ff7a0fe888ec49f4e2d3c;hb=aac11e9fd173e65886e2ee33c556e84bb2859f77;hp=b456772c5a9a058e5e71a61c1d5f7feaf7313c32;hpb=1dbdcf7305347ff9f650b5434ab036e06e4be24c;p=super-star-trek.git diff --git a/sst.c b/sst.c index b456772..b60b57e 100644 --- a/sst.c +++ b/sst.c @@ -201,7 +201,6 @@ static void helpme(void) { static void makemoves(void) { int i, hitme; - char ch; while (TRUE) { /* command loop */ hitme = FALSE; justin = 0; @@ -385,9 +384,6 @@ static void makemoves(void) { int main(int argc, char **argv) { int i, option, usecurses = TRUE; - int hitme; - char ch; - while ((option = getopt(argc, argv, "t")) != -1) { switch (option) { case 't': @@ -430,6 +426,7 @@ int main(int argc, char **argv) { skip(1); ioend(); puts("May the Great Bird of the Galaxy roost upon your home planet."); + exit(0); }