From fbc8de6048a43369335d189c0c59af24474f7060 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 28 Jun 2012 18:43:16 +0000 Subject: Constify the "string to return if not found" argument to geoip_db_lookup_ipv4() and geoip_db_lookup_ipv6(). In both of those routines, "ret" is always set to a non-null value - it's initially set to the aforementioned string - so always return it. svn path=/trunk/; revision=43526 --- epan/geoip_db.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/geoip_db.h') diff --git a/epan/geoip_db.h b/epan/geoip_db.h index 35073b9f3e..75cbfecbe8 100644 --- a/epan/geoip_db.h +++ b/epan/geoip_db.h @@ -71,7 +71,7 @@ extern int geoip_db_type(guint dbnum); * @param not_found The string to return if the lookup fails. May be NULL. * @return The database entry if found, else not_found */ -extern const char *geoip_db_lookup_ipv4(guint dbnum, guint32 addr, char *not_found); +extern const char *geoip_db_lookup_ipv4(guint dbnum, guint32 addr, const char *not_found); /** * Look up an IPv6 address in a database @@ -81,7 +81,7 @@ extern const char *geoip_db_lookup_ipv4(guint dbnum, guint32 addr, char *not_fou * @param not_found The string to return if the lookup fails. May be NULL. * @return The database entry if found, else not_found */ -extern const char *geoip_db_lookup_ipv6(guint dbnum, struct e_in6_addr addr, char *not_found); +extern const char *geoip_db_lookup_ipv6(guint dbnum, struct e_in6_addr addr, const char *not_found); /** * Get all configured paths -- cgit v1.2.1