summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-05-23 09:04:12 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-05-23 09:09:08 +0200
commit495f8363ded3ea881f0c5f960ff49baa59a2ac9b (patch)
treec7c2bb08b7a1ad68c71ab9b7b0ad26dc71512d7f /c
parent6553bf4ab60490134f362e3933023bb5bbceecdf (diff)
downloadrtems-495f8363ded3ea881f0c5f960ff49baa59a2ac9b.tar.bz2
score: Reformat for code coverage
Close #2349.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/kern_ntptime.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/cpukit/score/src/kern_ntptime.c b/cpukit/score/src/kern_ntptime.c
index 8a16702736..1233166a61 100644
--- a/cpukit/score/src/kern_ntptime.c
+++ b/cpukit/score/src/kern_ntptime.c
@@ -74,8 +74,24 @@ __FBSDID("$FreeBSD$");
#define ntp_update_second _Timecounter_NTP_update_second
#define time_uptime _Timecounter_Time_uptime
struct thread;
-static __inline long lmax(long a, long b) { return (a > b ? a : b); }
-static __inline quad_t qmin(quad_t a, quad_t b) { return (a < b ? a : b); }
+
+static inline long
+lmax(long a, long b)
+{
+
+ if (a > b)
+ return (a);
+ return (b);
+}
+
+static inline quad_t
+qmin(quad_t a, quad_t b)
+{
+
+ if (a < b)
+ return (a);
+ return (b);
+}
#endif /* __rtems__ */
#ifndef __rtems__