]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/strutils: extend parse_switch() to accept more options
authorKarel Zak <kzak@redhat.com>
Tue, 24 Feb 2015 11:04:22 +0000 (12:04 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Feb 2015 11:04:22 +0000 (12:04 +0100)
commit30b294c491b4577d5f0e5c94f17cf9e36a8ecb72
tree087407622ab14e28164f8f6447e036eadcc2fb43
parente5cf14765502931f7a89c95feee712e27f9003cc
lib/strutils: extend parse_switch() to accept more options

* allow to specify more 0|1 pairs
* allow to specify error message

Signed-off-by: Karel Zak <kzak@redhat.com>
include/strutils.h
lib/strutils.c
term-utils/setterm.c