summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Zabaluev <mikhail.zabaluev@nokia.com>2011-01-28 20:36:42 +0200
committerMikhail Zabaluev <mikhail.zabaluev@nokia.com>2011-01-28 20:57:04 +0200
commit68b99ed09a29fa567d0a49789389ba8b545d0226 (patch)
treec7ba0777125b245c0ba08baf49058a2b18bd6d28
parentcaf244b6d1b38cc42291ce0697374fae6f5a4148 (diff)
Changed the size parameter type to signed in tpsip_unquote_string()
The special value of -1 implies that the type should be signed.
-rw-r--r--tpsip/util.c2
-rw-r--r--tpsip/util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tpsip/util.c b/tpsip/util.c
index ae91934..ee7642c 100644
--- a/tpsip/util.c
+++ b/tpsip/util.c
@@ -116,7 +116,7 @@ tpsip_quote_string (const gchar *src)
* The string is to be freed with g_free().
*/
gchar *
-tpsip_unquote_string (const gchar *src, gsize len)
+tpsip_unquote_string (const gchar *src, gssize len)
{
gchar *res;
gchar *p;
diff --git a/tpsip/util.h b/tpsip/util.h
index df52f2d..10960e2 100644
--- a/tpsip/util.h
+++ b/tpsip/util.h
@@ -27,7 +27,7 @@ G_BEGIN_DECLS
gchar * tpsip_quote_string (const gchar *src);
-gchar * tpsip_unquote_string (const gchar *src, gsize len);
+gchar * tpsip_unquote_string (const gchar *src, gssize len);
void tpsip_string_append_quoted (GString *buf, const gchar *text);