aboutsummaryrefslogtreecommitdiffstats
path: root/capture-pcap-util-unix.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-10-09 08:40:02 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-10-09 08:40:02 +0000
commiteb618abad9a969fcdf32129ab807f6cf7c5acb55 (patch)
tree3b341d16838d9e4f6f7c65babb8896279e3c38b6 /capture-pcap-util-unix.c
parent41ad59d6a7f4d3657862fcb20f17af7b85bb0683 (diff)
From Bill Parker:
Explicitly declare/cast 'unsigned <variable>' as 'unsigned int <variable>' https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7810 svn path=/trunk/; revision=45418
Diffstat (limited to 'capture-pcap-util-unix.c')
-rw-r--r--capture-pcap-util-unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture-pcap-util-unix.c b/capture-pcap-util-unix.c
index 0e094b1add..df78f03176 100644
--- a/capture-pcap-util-unix.c
+++ b/capture-pcap-util-unix.c
@@ -151,7 +151,7 @@ get_interface_list(int *err, char **err_str)
goto fail;
}
} else {
- if ((unsigned) ifc.ifc_len < sizeof(struct ifreq)) {
+ if ((unsigned int) ifc.ifc_len < sizeof(struct ifreq)) {
if (err_str != NULL) {
*err_str = g_strdup(
"Can't get list of interfaces: SIOCGIFCONF ioctl gave too small return buffer");