diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-01-31 08:25:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-01-31 08:25:37 +0000 |
commit | 31b3cceaa950713ede6a69b1ccb52a298ed54a08 (patch) | |
tree | 846a2f3d06d7573d50f11900a6ab2c5969a5a61b /src/ats/ats_api_scheduling.c | |
parent | 0d90a33f83606133e2883e66c83eb932c7faaa31 (diff) |
fixing const api and add check to address
Diffstat (limited to 'src/ats/ats_api_scheduling.c')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c index b3d6440232..dd70b634f6 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c @@ -759,7 +759,7 @@ get_addresses (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) * @return location as GNUNET_ATS_Information */ -struct GNUNET_ATS_Information +const struct GNUNET_ATS_Information GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle * sh, const struct sockaddr * addr, socklen_t addrlen) { GNUNET_assert (sh != NULL); @@ -868,7 +868,7 @@ GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle * sh, const stru ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); ats.value = htonl (type); - return ats; + return (const struct GNUNET_ATS_Information) ats; } /** |