diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-11-08 21:24:47 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-11-08 21:24:47 +0000 |
commit | 3353e61cac2a6e6024c2523823fdd30a6ae6b318 (patch) | |
tree | b4ecaf7e6c15910836e9df54aead5dc9713e74dd /sys/dev | |
parent | b7445080032e49d10bf5090b86cfc8f099bfb859 (diff) |
Simple cleaning of sgivol, with no functional change (yet):
- remove hardcoded constants
- use strtol() and check for errors instead of using atoi()
- use err()/errx()/warnx() when applicable
- use bounded string operations whenever possible
- use strncpy() instead of a home-grown construct
Plus you get the "/usr/mdec/sgivol -p" instant coredump fixed for free.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions