Add some casts to satisfy the various compilers.

Change-Id: I7687fc0b433774fe447757af00bdaa2fc44ac59d
Reviewed-on: https://code.wireshark.org/review/7254
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
AndersBroman 2015-02-19 15:21:34 +01:00 committed by Anders Broman
parent adf6f89568
commit ca68a7adc3
4 changed files with 4 additions and 4 deletions

View File

@ -969,7 +969,7 @@ static void address_with_resolution_to_str_buf(const address* addr, gchar *buf,
buf[pos++] = '(';
}
addr_len = at->addr_to_str(addr, &buf[pos], buf_len-pos);
addr_len = at->addr_to_str(addr, &buf[pos], (int)(buf_len-pos));
pos += addr_len;
if (!empty)

View File

@ -266,7 +266,7 @@ static int J1939_addr_to_str(const address* addr, gchar *buf, int buf_len _U_)
buf = uint_to_str_back(buf, *addrdata);
*buf = '\0';
return buf-start_buf+1;
return (int)(buf-start_buf+1);
}
static int J1939_addr_str_len(const address* addr _U_)

View File

@ -862,7 +862,7 @@ static int sna_fid_to_str_buf(const address *addr, gchar *buf, int buf_len _U_)
return 1;
}
return strlen(buf)+1;
return (int)strlen(buf)+1;
}

View File

@ -223,7 +223,7 @@ static int osi_address_type = -1;
static int osi_address_to_str(const address* addr, gchar *buf, int buf_len)
{
print_nsap_net_buf((const guint8 *)addr->data, addr->len, buf, buf_len);
return strlen(buf)+1;
return (int)strlen(buf)+1;
}
static int osi_address_str_len(const address* addr _U_)