mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib: Use struct initialization
Make sure everything is initialized Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
c443d377a0
commit
0fe1a6e9da
@ -102,9 +102,7 @@ time_t convert_timespec_to_time_t(struct timespec ts)
|
||||
|
||||
struct timespec convert_time_t_to_timespec(time_t t)
|
||||
{
|
||||
struct timespec ts;
|
||||
ts.tv_sec = t;
|
||||
ts.tv_nsec = 0;
|
||||
struct timespec ts = {.tv_sec = t};
|
||||
return ts;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user