]> diplodocus.org Git - nmh/blobdiff - sbr/read_switch.c
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
[nmh] / sbr / read_switch.c
index 4599a41c03d2f091dfff0d2257b04d53d0715d89..dcc14b787582d985ef45f2f15286d7f1816fc752 100644 (file)
@@ -13,9 +13,9 @@
 int
 read_switch (const char *prompt, const struct swit *ansp)
 {
 int
 read_switch (const char *prompt, const struct swit *ansp)
 {
-    register int i;
-    register char *cp;
-    register const struct swit *ap;
+    int i;
+    char *cp;
+    const struct swit *ap;
     char ansbuf[BUFSIZ];
 
     for (;;) {
     char ansbuf[BUFSIZ];
 
     for (;;) {