<div dir="auto"><div>Perhe POSIX specification hese are just supposed to be constants. The cast is unnecessary.</div><div dir="auto"><br></div><div dir="auto">Ok to commit?</div><div dir="auto"><br></div><div dir="auto">--joel<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Nov 18, 2024, 10:32 PM <<a href="mailto:aaron.nyholm@unfoldedeffective.com">aaron.nyholm@unfoldedeffective.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Aaron Nyholm <<a href="mailto:aaron.nyholm@unfoldedeffective.com" target="_blank" rel="noreferrer">aaron.nyholm@unfoldedeffective.com</a>><br>
<br>
---<br>
newlib/libc/include/time.h | 20 ++++++++++----------<br>
1 file changed, 10 insertions(+), 10 deletions(-)<br>
<br>
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h<br>
index ed6cc70fe..ab3491341 100644<br>
--- a/newlib/libc/include/time.h<br>
+++ b/newlib/libc/include/time.h<br>
@@ -237,10 +237,10 @@ extern "C" {<br>
/* Manifest Constants, P1003.1b-1993, p. 262 */<br>
<br>
#if __GNU_VISIBLE<br>
-#define CLOCK_REALTIME_COARSE ((clockid_t) 0)<br>
+#define CLOCK_REALTIME_COARSE (0)<br>
#endif<br>
<br>
-#define CLOCK_REALTIME ((clockid_t) 1)<br>
+#define CLOCK_REALTIME (1)<br>
<br>
/* Manifest Constants, P1003.4b/D8, p. 55 */<br>
<br>
@@ -250,7 +250,7 @@ extern "C" {<br>
the identifier of the CPU_time clock associated with the PROCESS<br>
making the function call. */<br>
<br>
-#define CLOCK_PROCESS_CPUTIME_ID ((clockid_t) 2)<br>
+#define CLOCK_PROCESS_CPUTIME_ID (2)<br>
<br>
#endif<br>
<br>
@@ -260,7 +260,7 @@ extern "C" {<br>
the identifier of the CPU_time clock associated with the THREAD<br>
making the function call. */<br>
<br>
-#define CLOCK_THREAD_CPUTIME_ID ((clockid_t) 3)<br>
+#define CLOCK_THREAD_CPUTIME_ID (3)<br>
<br>
#endif<br>
<br>
@@ -270,21 +270,21 @@ extern "C" {<br>
* as a clock whose value cannot be set via clock_settime() and which<br>
* cannot have backward clock jumps. */<br>
<br>
-#define CLOCK_MONOTONIC ((clockid_t) 4)<br>
+#define CLOCK_MONOTONIC (4)<br>
<br>
#endif<br>
<br>
#if __GNU_VISIBLE<br>
<br>
-#define CLOCK_MONOTONIC_RAW ((clockid_t) 5)<br>
+#define CLOCK_MONOTONIC_RAW (5)<br>
<br>
-#define CLOCK_MONOTONIC_COARSE ((clockid_t) 6)<br>
+#define CLOCK_MONOTONIC_COARSE (6)<br>
<br>
-#define CLOCK_BOOTTIME ((clockid_t) 7)<br>
+#define CLOCK_BOOTTIME (7)<br>
<br>
-#define CLOCK_REALTIME_ALARM ((clockid_t) 8)<br>
+#define CLOCK_REALTIME_ALARM (8)<br>
<br>
-#define CLOCK_BOOTTIME_ALARM ((clockid_t) 9)<br>
+#define CLOCK_BOOTTIME_ALARM (9)<br>
<br>
#endif<br>
<br>
-- <br>
2.46.2<br>
<br>
</blockquote></div></div></div>