<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/17089">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">value_string: Switch val from unsigned to int<br><br>There's nothing really preventing a user from user negative values.<br><br>Otherwise if we keep it like this then g++ is not happy when passing eg.<br>{ -2, "foobar" } when initializing a value_string array.<br><br>Change-Id: I754fa7e054cb89801ef82edc82199dcfbe59c6ab<br>---<br>M include/osmocom/core/utils.h<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/89/17089/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h</span><br><span>index 01c4de6..6f76e71 100644</span><br><span>--- a/include/osmocom/core/utils.h</span><br><span>+++ b/include/osmocom/core/utils.h</span><br><span>@@ -40,7 +40,7 @@</span><br><span> </span><br><span> /*! A mapping between human-readable string and numeric value */</span><br><span> struct value_string {</span><br><span style="color: hsl(0, 100%, 40%);">-  unsigned int value;     /*!< numeric value */</span><br><span style="color: hsl(120, 100%, 40%);">+      int value;      /*!< numeric value */</span><br><span>     const char *str;        /*!< human-readable string */</span><br><span> };</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/17089">change 17089</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/17089"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I754fa7e054cb89801ef82edc82199dcfbe59c6ab </div>
<div style="display:none"> Gerrit-Change-Number: 17089 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>