Skip to contentSkip to conversation

clock_getres.2: EXAMPLES: Use 'const' when appropriate

PATCH In review Alejandro Colomar 2 participants 2 messages Oct 28, 2020 – Oct 29, 2020 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clock_getres.2: EXAMPLES: Use 'const' when appropriate

---
 man2/clock_getres.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/clock_getres.2 +1 -1
index 4bd92f861..d47b50328 100644
@@ -476,7 +476,7 @@ CLOCK_BOOTTIME :      72691.019 (20h 11m 31s)
 #define SECS_IN_DAY (24 * 60 * 60)
 
 static void
-displayClock(clockid_t clock, char *name, bool showRes)
+displayClock(clockid_t clock, const char *name, bool showRes)
 {
     struct timespec ts;
 
Signature · 1 line
2.28.0
#1 lore raw
Quoted 1 line · Alejandro Colomar

Hello Alex,

Thanks. Patch applied.

Cheers,

Michael

Quoted 18 lines
---
 man2/clock_getres.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/clock_getres.2 +1 -1
index 4bd92f861..d47b50328 100644
@@ -476,7 +476,7 @@ CLOCK_BOOTTIME :      72691.019 (20h 11m 31s)
 #define SECS_IN_DAY (24 * 60 * 60)
 
 static void
-displayClock(clockid_t clock, char *name, bool showRes)
+displayClock(clockid_t clock, const char *name, bool showRes)
 {
     struct timespec ts;
 
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/