lkml.org 
[lkml]   [2020]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 09/24] clock_getcpuclockid.3: Remove unneeded cast
From
Date
Hi Michael,

On 2020-09-11 09:48, Michael Kerrisk (man-pages) wrote:
> Hi Alex,
>
> On 9/10/20 11:13 PM, Alejandro Colomar wrote:
>> Member 'tv_nsec' of 'struct timespec' is of type 'long' (see time.h.0p),
>> and therefore, the cast is completely redundant.
>
> Good catch! Patch applied.
>
> Cheers,
>
> Michael

Ping :)
Did you really apply it? hehe

Cheers,

Alex

>
>> Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
>> ---
>> man3/clock_getcpuclockid.3 | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/man3/clock_getcpuclockid.3 b/man3/clock_getcpuclockid.3
>> index 283f92557..050d7ad13 100644
>> --- a/man3/clock_getcpuclockid.3
>> +++ b/man3/clock_getcpuclockid.3
>> @@ -154,7 +154,7 @@ main(int argc, char *argv[])
>> }
>>
>> printf("CPU-time clock for PID %s is %ld.%09ld seconds\en",
>> - argv[1], (long) ts.tv_sec, (long) ts.tv_nsec);
>> + argv[1], (long) ts.tv_sec, ts.tv_nsec);
>> exit(EXIT_SUCCESS);
>> }
>> .EE
>>
>
>

\
 
 \ /
  Last update: 2020-09-11 12:27    [W:0.172 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site