Fix type mismatch

Backported from NetXMS project.
This commit is contained in:
Dmitry Podgorny
2016-09-02 11:59:54 +03:00
parent 0c60e8d384
commit 3e77afb27e
3 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ char *xmpp_jid_new(xmpp_ctx_t *ctx, const char *node,
const char *resource)
{
char *result;
int len,nlen,dlen,rlen;
size_t len, nlen, dlen, rlen;
/* jid must at least have a domain */
if (domain == NULL) return NULL;
@@ -157,7 +157,7 @@ char *xmpp_jid_resource(xmpp_ctx_t *ctx, const char *jid)
{
char *result = NULL;
const char *c;
int len;
size_t len;
c = strchr(jid, '/');
if (c != NULL) {

View File

@@ -43,7 +43,7 @@ static char *_xml_name(xmpp_ctx_t *ctx, const char *nsname)
{
char *result = NULL;
const char *c;
int len;
size_t len;
c = strchr(nsname, NAMESPACE_SEP);
if (c == NULL) return xmpp_strdup(ctx, nsname);

View File

@@ -75,7 +75,7 @@ static char *_make_string(xmpp_ctx_t *ctx, const char *s, const unsigned len)
static char *_make_quoted(xmpp_ctx_t *ctx, const char *s)
{
char *result;
int len = strlen(s);
size_t len = strlen(s);
result = xmpp_alloc(ctx, len + 3);
if (result != NULL) {