clock_getres.2: EXAMPLES: Use 'const' when appropriate
PATCH 1/1 clock_getres.2: EXAMPLES: Use 'const' when appropriate
Signed-off-by Alejandro Colomar <[email protected]>
--- man2/clock_getres.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
man2/clock_getres.2 +1 -1
@@ -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
Quoted 1 line · Alejandro Colomar
Signed-off-by Alejandro Colomar <[email protected]>
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@@ -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/