summaryrefslogtreecommitdiff
path: root/ui/recent.c
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2016-10-29 08:59:18 +0200
committerRoland Knall <rknall@gmail.com>2016-10-30 08:44:25 +0000
commit42f0695f4d84093a1617ee1f35ee724aa4d98166 (patch)
tree31f59ea9c002b96909e34d5107da7d64ca3c927f /ui/recent.c
parentb8a766a8e644af73b615a8198749f87607f47e47 (diff)
downloadwireshark-42f0695f4d84093a1617ee1f35ee724aa4d98166.tar.gz
Fix two warnings when compiling with rpcap support on macOS.
One is an unused variable warning turning error, the other is [ 71%] Building C object ui/CMakeFiles/ui.dir/recent.c.o /Users/jmayer/worktmp/wireshark/git/ui/recent.c:494:23: error: implicit conversion loses integer precision: 'glong' (aka 'long') to 'gint' (aka 'int') [-Werror,-Wshorten-64-to-32] rh->auth_type = auth_type; ~ ^~~~~~~~~ 1 error generated. Please review. Change-Id: If838f8fa1e8a76dc8c6cc78db495befdd527da92 Reviewed-on: https://code.wireshark.org/review/18544 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/recent.c')
-rw-r--r--ui/recent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/recent.c b/ui/recent.c
index 4ea4bb1600..b95ee65eb6 100644
--- a/ui/recent.c
+++ b/ui/recent.c
@@ -489,7 +489,7 @@ capture_remote_combo_add_recent(const gchar *s)
if (valp) {
/* Found value 3, this is the authentication type */
- auth_type = strtol(valp->data, &p, 0);
+ auth_type = (gint)strtol(valp->data, &p, 0);
if (p != valp->data && *p == '\0') {
rh->auth_type = auth_type;
}