]> git.ipfire.org Git - thirdparty/iproute2.git/commit
lib: Add str_to_bool helper function
authorPetr Oros <poros@redhat.com>
Tue, 18 Nov 2025 14:10:30 +0000 (15:10 +0100)
committerDavid Ahern <dsahern@kernel.org>
Fri, 21 Nov 2025 16:10:22 +0000 (09:10 -0700)
commit42f2f219c618f0c1bf07e536f5cdcc27cb0d6a4b
treecc2e449df5611c883ae651368bb0d8ff159e7818
parent0d61015ba9910b128db2d7b455056093755e21f9
lib: Add str_to_bool helper function

Add str_to_bool() helper function to lib/utils.c that uses
parse_one_of() to parse boolean values. Update devlink to
use this common implementation.

Signed-off-by: Petr Oros <poros@redhat.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
devlink/devlink.c
include/utils.h
lib/utils.c