Re: minor mount.c cleanup

2017-01-24 Thread Theo Buehler
On Wed, Jan 25, 2017 at 10:29:47AM +1000, Theo Buehler wrote: > * check strdup for malloc failure > * remove obvious /* NOTREACHED */ > * return instead of exit from main > * err(1, NULL) instead of err(1, "malloc") > * mark usage as __dead Sorry, I sent the wrong version of the diff with an extra

minor mount.c cleanup

2017-01-24 Thread Theo Buehler
* check strdup for malloc failure * remove obvious /* NOTREACHED */ * return instead of exit from main * err(1, NULL) instead of err(1, "malloc") * mark usage as __dead Index: mount.c === RCS file: /cvs/src/sbin/mount/mount.c,v retrie