aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-02-03 11:18:51 +0100
committerpespin <pespin@sysmocom.de>2020-02-04 15:22:19 +0000
commitcc0b5d527d648088c1ebc047e402669fda6c7884 (patch)
tree4199f7514ea474979113aefbaa150e5ff494e1bc /include
parent18caa877782db17fb9e93dd81aaaf0521bfae4e6 (diff)
value_string: Switch val from unsigned to int
There's nothing really preventing a user from user negative values. Otherwise if we keep it like this then g++ is not happy when passing eg. { -2, "foobar" } when initializing a value_string array. Change-Id: I754fa7e054cb89801ef82edc82199dcfbe59c6ab
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/core/utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h
index 01c4de6e..40f44468 100644
--- a/include/osmocom/core/utils.h
+++ b/include/osmocom/core/utils.h
@@ -40,7 +40,7 @@
/*! A mapping between human-readable string and numeric value */
struct value_string {
- unsigned int value; /*!< numeric value */
+ int value; /*!< numeric value */
const char *str; /*!< human-readable string */
};