lkml.org 
[lkml]   [2017]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [RESEND PATCH 2/6] ipc: mqueue: Replace timespec with timespec64
>> -               memcpy(p, abs_timeout, sizeof(struct timespec));
>> + memcpy(p, abs_timeout, sizeof(struct timespec64));
>
> Since you're changing this line, how about changing it to the following:
>
> memcpy(p, abs_timeout, sizeof(*p));
>
>> else
>> - memset(p, 0, sizeof(struct timespec));
>> + memset(p, 0, sizeof(struct timespec64));
>
> Same here.

Sure, that seems fine to me.
I will post an update.

-Deepa

\
 
 \ /
  Last update: 2017-07-28 23:26    [W:1.277 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site