diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-06-28 18:43:16 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-06-28 18:43:16 +0000 |
commit | fbc8de6048a43369335d189c0c59af24474f7060 (patch) | |
tree | 6e4a46cc457b745b7cb712b74a0833aa67936ee2 /epan/geoip_db.h | |
parent | 79e11663b1d8b21c4f79c0f7bf4ca15978a0da39 (diff) | |
download | wireshark-fbc8de6048a43369335d189c0c59af24474f7060.tar.gz |
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
Diffstat (limited to 'epan/geoip_db.h')
-rw-r--r-- | epan/geoip_db.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |