[libc-commits] [PATCH] D138064: [libc] cleanup changes to gettimeofday.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Nov 15 15:00:43 PST 2022


sivachandra accepted this revision.
sivachandra added inline comments.
This revision is now accepted and ready to land.


================
Comment at: libc/src/time/gettimeofday.cpp:26
+  long ret_val =
+      __llvm_libc::syscall_impl(SYS_clock_gettime, static_cast<long>(clockid),
+                                reinterpret_cast<long>(&tp));
----------------
Nit: You can avoid the `clockid` var and just use `long(CLOCK_REALTIME)` here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138064/new/

https://reviews.llvm.org/D138064



More information about the libc-commits mailing list