From: Joel Rosdahl Date: Mon, 17 Jul 2023 13:41:06 +0000 (+0200) Subject: chore: Improve code style X-Git-Tag: v4.9~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58cba95b81a21ab850636b0dfdea3b4ab94c2b79;p=thirdparty%2Fccache.git chore: Improve code style --- diff --git a/src/Win32Util.cpp b/src/Win32Util.cpp index 84e7c5b62..7e1bdb601 100644 --- a/src/Win32Util.cpp +++ b/src/Win32Util.cpp @@ -136,12 +136,11 @@ get_last_ntstatus() } // namespace Win32Util struct tm* -localtime_r(time_t* _clock, struct tm* _result) +localtime_r(time_t* clock, struct tm* result) { - struct tm* p = localtime(_clock); - - if (p) - *(_result) = *p; - + struct tm* p = localtime(clock); + if (p) { + *result = *p; + } return p; }