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 | |
parent | 0d90a33f83606133e2883e66c83eb932c7faaa31 (diff) | |
download | gnunet-31b3cceaa950713ede6a69b1ccb52a298ed54a08.tar.gz gnunet-31b3cceaa950713ede6a69b1ccb52a298ed54a08.zip |
fixing const api and add check to address
Diffstat (limited to 'src/ats')
-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 b3d644023..dd70b634f 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) | |||
759 | * @return location as GNUNET_ATS_Information | 759 | * @return location as GNUNET_ATS_Information |
760 | */ | 760 | */ |
761 | 761 | ||
762 | struct GNUNET_ATS_Information | 762 | const struct GNUNET_ATS_Information |
763 | GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle * sh, const struct sockaddr * addr, socklen_t addrlen) | 763 | GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle * sh, const struct sockaddr * addr, socklen_t addrlen) |
764 | { | 764 | { |
765 | GNUNET_assert (sh != NULL); | 765 | GNUNET_assert (sh != NULL); |
@@ -868,7 +868,7 @@ GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle * sh, const stru | |||
868 | 868 | ||
869 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); | 869 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); |
870 | ats.value = htonl (type); | 870 | ats.value = htonl (type); |
871 | return ats; | 871 | return (const struct GNUNET_ATS_Information) ats; |
872 | } | 872 | } |
873 | 873 | ||
874 | /** | 874 | /** |