From 524cf1895413026f528d9c59d16755a066c56f1c Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 5 Aug 2013 20:35:47 -0400 Subject: Fixed style and is_pinging(). --- core/util.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'core/util.c') diff --git a/core/util.c b/core/util.c index 6b40dad7..4ce9271e 100644 --- a/core/util.c +++ b/core/util.c @@ -11,21 +11,24 @@ #include "network.h" -uint64_t now() { - return time(NULL); +uint64_t now() +{ + return time(NULL); } -uint64_t random_64b() { - uint64_t r; +uint64_t random_64b() +{ + uint64_t r; - // This is probably not random enough? - r = random_int(); - r <<= 32; - r |= random_int(); + // This is probably not random enough? + r = random_int(); + r <<= 32; + r |= random_int(); - return r; + return r; } -bool ipp_eq(IP_Port a, IP_Port b) { - return (a.ip.i == b.ip.i) && (a.port == b.port); +bool ipp_eq(IP_Port a, IP_Port b) +{ + return (a.ip.i == b.ip.i) && (a.port == b.port); } -- cgit v1.2.3