diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-26 23:41:49 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-26 23:41:49 +0000 |
commit | 1a0761a65b09849b1748a334cd36dee8e2f02c25 (patch) | |
tree | 41a39a75f7e83f2d894f0178bed7eaf985ada36b /sbin/newfs_msdos/newfs_msdos.8 | |
parent | b688c18970966af65c9a7cc3a19f0d2e05987928 (diff) |
Rework and simplify string argument parsing. All string arguments are at
most DPISTRLEN (32) characters so there is no need for fancy dynamic
growing strings. Use a DPISTRLEN long buffer and bail if it fills up.
Rename get_string() to get_dpistr() and get_string_argument() to
get_dpstr_argument() to emphasize they will return strings that fit
in DPISTRLEN.
Rework & simplify a pair of their consumers - do_rename_partition() and
do_change_type() - to be more obviously identitical to each other bar
the displayed verbiage.
Diffstat (limited to 'sbin/newfs_msdos/newfs_msdos.8')
0 files changed, 0 insertions, 0 deletions