From 10a2bc6319682db8a2fc0b799675553251013916 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 22 Sep 2012 19:48:40 +0200 Subject: device: Rename function to hwrev_is_valid --- src/device.c | 2 +- src/device.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/device.c b/src/device.c index 8baa201..ca9abc2 100644 --- a/src/device.c +++ b/src/device.c @@ -75,7 +75,7 @@ const char * device_to_long_string(enum device device) { } -int hwrevs_is_valid(const int16_t * hwrevs, int16_t hwrev) { +int hwrev_is_valid(const int16_t * hwrevs, int16_t hwrev) { int i; for ( i = 0; hwrevs[i] != -1; ++i ) diff --git a/src/device.h b/src/device.h index 875b1ab..8f62254 100644 --- a/src/device.h +++ b/src/device.h @@ -46,7 +46,7 @@ enum device device_from_string(const char * device); const char * device_to_string(enum device device); const char * device_to_long_string(enum device device); -int hwrevs_is_valid(const int16_t * hwrevs, int16_t hwrev); +int hwrev_is_valid(const int16_t * hwrevs, int16_t hwrev); int16_t * hwrevs_alloc_from_string(const char * str); char * hwrevs_alloc_to_string(const int16_t * hwrevs); -- cgit v1.2.3