lib: util: Make nt_time_to_unix_timespec() call nt_time_to_unix_timespec_raw() for...
authorJeremy Allison <jra@samba.org>
Fri, 7 Jan 2022 19:22:03 +0000 (11:22 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 11 Jan 2022 00:45:28 +0000 (00:45 +0000)
commit545442ec0cab9ed06b1fa2be125ca36296597048
tree7888fca059d5ce58ddc8f9e2b4020ca29a3e6676
parentcebf26d0624489db3cbf5e31e97c4a92771758f0
lib: util: Make nt_time_to_unix_timespec() call nt_time_to_unix_timespec_raw() for the conversion.

Cleanup to eliminate duplicate code.

The low/high checks are now done against ret.tv_sec,
not 'd', as after calling nt_time_to_unix_timespec_raw()
this is identical to the previous intermediate 'd'
variable.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
lib/util/time.c