Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
}
LOC_EXPORT int loc_database_lookup(struct loc_database* db,
- struct in6_addr* address, struct loc_network** network) {
+ const struct in6_addr* address, struct loc_network** network) {
struct in6_addr network_address;
memset(&network_address, 0, sizeof(network_address));
size_t loc_database_count_as(struct loc_database* db);
int loc_database_lookup(struct loc_database* db,
- struct in6_addr* address, struct loc_network** network);
+ const struct in6_addr* address, struct loc_network** network);
int loc_database_lookup_from_string(struct loc_database* db,
const char* string, struct loc_network** network);