<p>Kevin Harwell <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/9268">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">uuid: Enable UUID in Solaris 11.<br><br>ASTERISK-27933<br>Reported by: bautsche<br><br>Change-Id: I9b8362824efbfb2a16981e46e85f7c8322908c49<br>---<br>M include/asterisk/uuid.h<br>M main/uuid.c<br>2 files changed, 12 insertions(+), 12 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/include/asterisk/uuid.h b/include/asterisk/uuid.h<br>index 223ad18..4b1849b 100644<br>--- a/include/asterisk/uuid.h<br>+++ b/include/asterisk/uuid.h<br>@@ -52,7 +52,7 @@<br> * \param size The size of the buffer. Must be at least AST_UUID_STR_LEN.<br> * \return The UUID string (a pointer to buf)<br> */<br>-char *ast_uuid_to_str(const struct ast_uuid *uuid, char *buf, size_t size);<br>+char *ast_uuid_to_str(struct ast_uuid *uuid, char *buf, size_t size);<br> <br> /*!<br> * \brief Generate a UUID string.<br>@@ -75,7 +75,7 @@<br> * \retval NULL Failed to convert<br> * \retval non-NULL The heap-allocated converted UUID<br> */<br>-struct ast_uuid *ast_str_to_uuid(const char *str);<br>+struct ast_uuid *ast_str_to_uuid(char *str);<br> <br> /*!<br> * \brief Make a copy of a UUID<br>@@ -87,7 +87,7 @@<br> * \retval NULL Failed to copy<br> * \retval non-NULL The heap-allocated duplicate UUID<br> */<br>-struct ast_uuid *ast_uuid_copy(const struct ast_uuid *src);<br>+struct ast_uuid *ast_uuid_copy(struct ast_uuid *src);<br> <br> /*!<br> * \brief Compare two UUIDs<br>@@ -98,7 +98,7 @@<br> * \retval 0 left and right are the same<br> * \retval >0 left is lexicographically greater than right<br> */<br>-int ast_uuid_compare(const struct ast_uuid *left, const struct ast_uuid *right);<br>+int ast_uuid_compare(struct ast_uuid *left, struct ast_uuid *right);<br> <br> /*!<br> * \brief Clear a UUID by setting it to be a nil UUID (all 0s)<br>@@ -114,5 +114,5 @@<br> * \retval 0 The UUID is not nil<br> * \retval non-zero The UUID is nil<br> */<br>-int ast_uuid_is_nil(const struct ast_uuid *uuid);<br>+int ast_uuid_is_nil(struct ast_uuid *uuid);<br> #endif<br>diff --git a/main/uuid.c b/main/uuid.c<br>index 3c5d7af..b2c0997 100644<br>--- a/main/uuid.c<br>+++ b/main/uuid.c<br>@@ -133,11 +133,11 @@<br> return uuid;<br> }<br> <br>-char *ast_uuid_to_str(const struct ast_uuid *uuid, char *buf, size_t size)<br>+char *ast_uuid_to_str(struct ast_uuid *uuid, char *buf, size_t size)<br> {<br> ast_assert(size >= AST_UUID_STR_LEN);<br>- uuid_unparse_lower(uuid->uu, buf);<br>- return buf;<br>+ uuid_unparse(uuid->uu, buf);<br>+ return ast_str_to_lower(buf);<br> }<br> <br> char *ast_uuid_generate_str(char *buf, size_t size)<br>@@ -148,7 +148,7 @@<br> return ast_uuid_to_str(&uuid, buf, size);<br> }<br> <br>-struct ast_uuid *ast_str_to_uuid(const char *str)<br>+struct ast_uuid *ast_str_to_uuid(char *str)<br> {<br> struct ast_uuid *uuid = ast_malloc(sizeof(*uuid));<br> int res;<br>@@ -165,7 +165,7 @@<br> return uuid;<br> }<br> <br>-struct ast_uuid *ast_uuid_copy(const struct ast_uuid *src)<br>+struct ast_uuid *ast_uuid_copy(struct ast_uuid *src)<br> {<br> struct ast_uuid *dst = ast_malloc(sizeof(*dst));<br> <br>@@ -176,7 +176,7 @@<br> return dst;<br> }<br> <br>-int ast_uuid_compare(const struct ast_uuid *left, const struct ast_uuid *right)<br>+int ast_uuid_compare(struct ast_uuid *left, struct ast_uuid *right)<br> {<br> return uuid_compare(left->uu, right->uu);<br> }<br>@@ -186,7 +186,7 @@<br> uuid_clear(uuid->uu);<br> }<br> <br>-int ast_uuid_is_nil(const struct ast_uuid *uuid)<br>+int ast_uuid_is_nil(struct ast_uuid *uuid)<br> {<br> return uuid_is_null(uuid->uu);<br> }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9268">change 9268</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.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.asterisk.org/9268"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I9b8362824efbfb2a16981e46e85f7c8322908c49 </div>
<div style="display:none"> Gerrit-Change-Number: 9268 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>