uncrustify as demanded.
[oweals/gnunet.git] / src / ats / ats_api_scanner.c
index e23b4de8a1c092d4f9c45e825f46c3bb64bfebba..5c8ffe196368654fd63700408a6d219adbfb147c 100644 (file)
      WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      Affero General Public License for more details.
-    
+
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
      SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
 /**
  * @file ats/ats_api_scanner.c
  * @brief LAN interface scanning to determine IPs in LAN
  * @param hbo value read
  */
 void
-GNUNET_ATS_properties_hton (struct GNUNET_ATS_PropertiesNBO *nbo,
-                            const struct GNUNET_ATS_Properties *hbo)
+GNUNET_ATS_properties_hton(struct GNUNET_ATS_PropertiesNBO *nbo,
+                           const struct GNUNET_ATS_Properties *hbo)
 {
-  nbo->utilization_out = htonl (hbo->utilization_out);
-  nbo->utilization_in = htonl (hbo->utilization_in);
-  nbo->scope = htonl ((uint32_t) hbo->scope);
-  nbo->distance = htonl (hbo->distance);
-  nbo->delay = GNUNET_TIME_relative_hton (hbo->delay);
+  nbo->utilization_out = htonl(hbo->utilization_out);
+  nbo->utilization_in = htonl(hbo->utilization_in);
+  nbo->scope = htonl((uint32_t)hbo->scope);
+  nbo->distance = htonl(hbo->distance);
+  nbo->delay = GNUNET_TIME_relative_hton(hbo->delay);
 }
 
 
@@ -51,14 +51,14 @@ GNUNET_ATS_properties_hton (struct GNUNET_ATS_PropertiesNBO *nbo,
  * @param nbo value read
  */
 void
-GNUNET_ATS_properties_ntoh (struct GNUNET_ATS_Properties *hbo,
-                            const struct GNUNET_ATS_PropertiesNBO *nbo)
+GNUNET_ATS_properties_ntoh(struct GNUNET_ATS_Properties *hbo,
+                           const struct GNUNET_ATS_PropertiesNBO *nbo)
 {
-  hbo->utilization_out = ntohl (nbo->utilization_out);
-  hbo->utilization_in = ntohl (nbo->utilization_in);
-  hbo->scope = ntohl ((uint32_t) nbo->scope);
-  hbo->distance = ntohl (nbo->distance);
-  hbo->delay = GNUNET_TIME_relative_ntoh (nbo->delay);
+  hbo->utilization_out = ntohl(nbo->utilization_out);
+  hbo->utilization_in = ntohl(nbo->utilization_in);
+  hbo->scope = ntohl((uint32_t)nbo->scope);
+  hbo->distance = ntohl(nbo->distance);
+  hbo->delay = GNUNET_TIME_relative_ntoh(nbo->delay);
 }