Replace done with exit at uip
[mmh] / uip / whom.c
index 8ffe8b8..fb77ab3 100644 (file)
@@ -85,7 +85,7 @@ main(int argc, char **argv)
                        switch (smatch(++cp, switches)) {
                        case AMBIGSW:
                                ambigsw(cp, switches);
-                               done(1);
+                               exit(1);
 
                        case UNKWNSW:
                                adios(NULL, "-%s unknown", cp);
@@ -95,10 +95,10 @@ main(int argc, char **argv)
                                                "%s [switches] file ...",
                                                invo_name);
                                print_help(buf, switches, 1);
-                               done(1);
+                               exit(0);
                        case VERSIONSW:
                                print_version(invo_name);
-                               done(1);
+                               exit(0);
 
                        case TOCCSW:
                                toccsw = 1;
@@ -173,7 +173,7 @@ static int
 process(char *file)
 {
         int state, compnum;
-       char *cp;
+       char *cp = NULL;
        char buf[BUFSIZ], name[NAMESZ];
        FILE *in;