vnconfig -l: print an error if supplied vn is unknown
authorStathis Kamperis <beket@dragonflybsd.org>
Mon, 30 Mar 2009 07:48:36 +0000 (07:48 +0000)
committerStathis Kamperis <beket@dragonflybsd.org>
Mon, 30 Mar 2009 09:56:14 +0000 (09:56 +0000)
commit906f76fefd8f2e807f8f8e18da9b887206b4c1a8
tree0a616fadb0f0bcf59ec3f7b356c273df58245b74
parent4260e3337c75225b4aa78817695bbf76c0f2bdb6
vnconfig -l: print an error if supplied vn is unknown

The code as it is has no effect, because `tmp' is never NULL.
Make it behave as initially intended. Also, since we are here
replace the printf() call with errx().

Approved-by: corecode@
usr.sbin/vnconfig/vnconfig.c