]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
util: avoid duplication in argconfig_parse_comma_sep_array*()
authorCaleb Sander Mateos <csander@purestorage.com>
Tue, 16 Jul 2024 21:28:53 +0000 (15:28 -0600)
committerDaniel Wagner <wagi@monom.org>
Wed, 17 Jul 2024 14:57:45 +0000 (16:57 +0200)
commit72f3ab65f141eb39fa5ea67dc051321d8820825e
tree7283f561dc1204c23fef159d23f55892c5c746dd
parent8b902ec38726f73669db778e754a9d7739cc9752
util: avoid duplication in argconfig_parse_comma_sep_array*()

Use the loop body to convert the first token to an int.

Extend the existing macro so it can be used to define all the functions.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
util/argconfig.c