* [PATCH] clock_getres.2: EXAMPLES: Use 'const' when appropriate
@ 2020-10-28 19:32 Alejandro Colomar
2020-10-28 21:20 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Colomar @ 2020-10-28 19:32 UTC (permalink / raw)
To: mtk.manpages; +Cc: Alejandro Colomar, linux-man
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
---
man2/clock_getres.2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man2/clock_getres.2 b/man2/clock_getres.2
index 4bd92f861..d47b50328 100644
--- a/man2/clock_getres.2
+++ b/man2/clock_getres.2
@@ -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;
--
2.28.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clock_getres.2: EXAMPLES: Use 'const' when appropriate
2020-10-28 19:32 [PATCH] clock_getres.2: EXAMPLES: Use 'const' when appropriate Alejandro Colomar
@ 2020-10-28 21:20 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-10-28 21:20 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: mtk.manpages, linux-man
On 10/28/20 8:32 PM, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Hello Alex,
Thanks. Patch applied.
Cheers,
Michael
> ---
> man2/clock_getres.2 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man2/clock_getres.2 b/man2/clock_getres.2
> index 4bd92f861..d47b50328 100644
> --- a/man2/clock_getres.2
> +++ b/man2/clock_getres.2
> @@ -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;
>
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-29 1:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-28 19:32 [PATCH] clock_getres.2: EXAMPLES: Use 'const' when appropriate Alejandro Colomar
2020-10-28 21:20 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).