]> git.ipfire.org Git - thirdparty/util-linux.git/commit - disk-utils/partx.c
lib,strutils: add default value to parse_range()
authorDavidlohr Bueso <dave@gnu.org>
Fri, 14 Oct 2011 20:32:15 +0000 (16:32 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Oct 2011 09:06:48 +0000 (11:06 +0200)
commitaf7df9ee67248029aa47a3e5b2db6e8cbe1915fd
tree601641a175483e90dfb3432467af0bde82139f9e
parentcf48ee22d12f028198a857538369e346d9008a27
lib,strutils: add default value to parse_range()

This function currently sets the low or high values to 0 when the string doesn't
contain a value, like '123:' or ':123'. In order to make it more flexible, we allow it
to be passed an arbitrary value.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
include/strutils.h
lib/strutils.c
partx/partx.c