aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/inet_addr.h
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-11-08 14:02:08 +0000
committerJoão Valverde <j@v6e.pt>2017-11-09 16:08:25 +0000
commit39967011836c1e23dff188ffaadb747d9dcda062 (patch)
tree768e37aa23b5ad8775a47543ce26f1fdb3f3269d /wsutil/inet_addr.h
parent2ebc41050e43c508edbc8c0fa8cccb9797c463cf (diff)
Replace inet_addr() with our inet_pton() wrapper
Error checking omitted like in original code. Change-Id: If8b4181d30ddf5717951aaf7ec61db25c0bc5322 Reviewed-on: https://code.wireshark.org/review/24309 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'wsutil/inet_addr.h')
-rw-r--r--wsutil/inet_addr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/wsutil/inet_addr.h b/wsutil/inet_addr.h
index a3d45e25db..27ad4f143d 100644
--- a/wsutil/inet_addr.h
+++ b/wsutil/inet_addr.h
@@ -30,6 +30,7 @@
#endif
#include <glib.h>
+#include "inet_ipv4.h"
#include "inet_ipv6.h"
/*
@@ -83,7 +84,7 @@ WS_DLL_PUBLIC WS_RETNONNULL const gchar *
ws_inet_ntop6(gconstpointer src, gchar *dst, guint dst_size);
WS_DLL_PUBLIC gboolean
-ws_inet_pton4(const gchar *src, guint32 *dst);
+ws_inet_pton4(const gchar *src, ws_in4_addr *dst);
WS_DLL_PUBLIC gboolean
ws_inet_pton6(const gchar *src, ws_in6_addr *dst);