From: Bartosz Golaszewski Date: Thu, 29 Jun 2017 13:36:01 +0000 (+0200) Subject: chip: rename is_unsigned_int() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4e9940ea79b03f5dd35aa9125dc3b3dff35a916a;p=qemu-gpiodev%2Flibgpiod.git chip: rename is_unsigned_int() Use a shorter name for this simple routine. Signed-off-by: Bartosz Golaszewski --- diff --git a/src/lib/chip.c b/src/lib/chip.c index 9457574..74d8b7b 100644 --- a/src/lib/chip.c +++ b/src/lib/chip.c @@ -25,7 +25,7 @@ struct gpiod_chip { struct gpiod_line *lines; }; -static bool is_unsigned_int(const char *str) +static bool isuint(const char *str) { for (; *str && isdigit(*str); str++); @@ -132,7 +132,7 @@ struct gpiod_chip * gpiod_chip_open_lookup(const char *descr) { struct gpiod_chip *chip; - if (is_unsigned_int(descr)) { + if (isuint(descr)) { chip = gpiod_chip_open_by_number(strtoul(descr, NULL, 10)); } else { chip = gpiod_chip_open_by_label(descr);