diff options
Diffstat (limited to 'src/ats/ats_api_scanner.c')
-rw-r--r-- | src/ats/ats_api_scanner.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/ats/ats_api_scanner.c b/src/ats/ats_api_scanner.c index e23b4de8a..5c8ffe196 100644 --- a/src/ats/ats_api_scanner.c +++ b/src/ats/ats_api_scanner.c | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file ats/ats_api_scanner.c | 21 | * @file ats/ats_api_scanner.c |
22 | * @brief LAN interface scanning to determine IPs in LAN | 22 | * @brief LAN interface scanning to determine IPs in LAN |
@@ -33,14 +33,14 @@ | |||
33 | * @param hbo value read | 33 | * @param hbo value read |
34 | */ | 34 | */ |
35 | void | 35 | void |
36 | GNUNET_ATS_properties_hton (struct GNUNET_ATS_PropertiesNBO *nbo, | 36 | GNUNET_ATS_properties_hton(struct GNUNET_ATS_PropertiesNBO *nbo, |
37 | const struct GNUNET_ATS_Properties *hbo) | 37 | const struct GNUNET_ATS_Properties *hbo) |
38 | { | 38 | { |
39 | nbo->utilization_out = htonl (hbo->utilization_out); | 39 | nbo->utilization_out = htonl(hbo->utilization_out); |
40 | nbo->utilization_in = htonl (hbo->utilization_in); | 40 | nbo->utilization_in = htonl(hbo->utilization_in); |
41 | nbo->scope = htonl ((uint32_t) hbo->scope); | 41 | nbo->scope = htonl((uint32_t)hbo->scope); |
42 | nbo->distance = htonl (hbo->distance); | 42 | nbo->distance = htonl(hbo->distance); |
43 | nbo->delay = GNUNET_TIME_relative_hton (hbo->delay); | 43 | nbo->delay = GNUNET_TIME_relative_hton(hbo->delay); |
44 | } | 44 | } |
45 | 45 | ||
46 | 46 | ||
@@ -51,14 +51,14 @@ GNUNET_ATS_properties_hton (struct GNUNET_ATS_PropertiesNBO *nbo, | |||
51 | * @param nbo value read | 51 | * @param nbo value read |
52 | */ | 52 | */ |
53 | void | 53 | void |
54 | GNUNET_ATS_properties_ntoh (struct GNUNET_ATS_Properties *hbo, | 54 | GNUNET_ATS_properties_ntoh(struct GNUNET_ATS_Properties *hbo, |
55 | const struct GNUNET_ATS_PropertiesNBO *nbo) | 55 | const struct GNUNET_ATS_PropertiesNBO *nbo) |
56 | { | 56 | { |
57 | hbo->utilization_out = ntohl (nbo->utilization_out); | 57 | hbo->utilization_out = ntohl(nbo->utilization_out); |
58 | hbo->utilization_in = ntohl (nbo->utilization_in); | 58 | hbo->utilization_in = ntohl(nbo->utilization_in); |
59 | hbo->scope = ntohl ((uint32_t) nbo->scope); | 59 | hbo->scope = ntohl((uint32_t)nbo->scope); |
60 | hbo->distance = ntohl (nbo->distance); | 60 | hbo->distance = ntohl(nbo->distance); |
61 | hbo->delay = GNUNET_TIME_relative_ntoh (nbo->delay); | 61 | hbo->delay = GNUNET_TIME_relative_ntoh(nbo->delay); |
62 | } | 62 | } |
63 | 63 | ||
64 | 64 | ||