aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rsync.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-rsync.c')
-rw-r--r--epan/dissectors/packet-rsync.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rsync.c b/epan/dissectors/packet-rsync.c
index 9ca13d66c6..c2c8d6acb9 100644
--- a/epan/dissectors/packet-rsync.c
+++ b/epan/dissectors/packet-rsync.c
@@ -30,7 +30,6 @@
#include <epan/packet.h>
#include <epan/conversation.h>
#include <epan/prefs.h>
-#include <epan/prefs-int.h>
#include <epan/proto_data.h>
void proto_register_rsync(void);
@@ -312,8 +311,7 @@ static void
apply_rsync_prefs(void)
{
/* Rsync uses the port preference to determine client/server */
- pref_t *rsync_port = prefs_find_preference(prefs_find_module("rsync"), "tcp.port");
- glb_rsync_tcp_port = *rsync_port->varp.uint;
+ glb_rsync_tcp_port = prefs_get_uint_value("rsync", "tcp.port");
}
/* Register protocol with Wireshark. */