Author: dougm
Date: Fri May 10 22:02:29 2019
New Revision: 347468
URL: https://svnweb.freebsd.org/changeset/base/347468

Log:
  Add a (q)uit option to the subr_blist test program.
  
  Approved by: kib (mentor)
  Differential Revision: https://reviews.freebsd.org/D20234

Modified:
  head/sys/kern/subr_blist.c

Modified: head/sys/kern/subr_blist.c
==============================================================================
--- head/sys/kern/subr_blist.c  Fri May 10 21:55:11 2019        (r347467)
+++ head/sys/kern/subr_blist.c  Fri May 10 22:02:29 2019        (r347468)
@@ -1148,13 +1148,18 @@ main(int ac, char **av)
                            "f %x %d    -free\n"
                            "l %x %d    -fill\n"
                            "r %d       -resize\n"
-                           "h/?        -help"
+                           "h/?        -help\n"
+                           "q          -quit"
                        );
                        break;
+               case 'q':
+                       break;
                default:
                        printf("?\n");
                        break;
                }
+               if (buf[0] == 'q')
+                       break;
        }
        return (0);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to