]> diplodocus.org Git - nmh/blobdiff - sbr/read_switch_multiword_via_readline.c
Added warning about when post(1) can't refile(1) a draft.
[nmh] / sbr / read_switch_multiword_via_readline.c
index 570469bdc13e0b460cbdecbee6eca2e2c4c49d19..fe84b4e06e0629a8ba1d95de44f66a5225b741aa 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * read_switch_multiword_via_readline.c -- get an answer from the user, with readline
+/* read_switch_multiword_via_readline.c -- get an answer from the user, with readline
  *
  * This code is Copyright (c) 2012, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -43,7 +41,7 @@ read_switch_multiword_via_readline(char *prompt, struct swit *ansp)
            return NULL;
 
        if (ans[0] == '?' || ans[0] == '\0') {
-           printf("Options are:\n");
+           puts("Options are:");
            print_sw(ALL, ansp, "", stdout);
            free(ans);
            continue;
@@ -107,10 +105,9 @@ nmh_command_generator(const char *text, int state)
        buf[sizeof(buf) - 1] = '\0';
        p = *brkstring(buf, " ", NULL);
        if (strncmp(p, text, len) == 0)
-       return strdup(p);
+            return strdup(p);
     }
 
     return NULL;
 }
 #endif /* READLINE_SUPPORT */
-