summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorRaghav Muddur <r@nmvk.com>2021-01-18 01:37:05 -0800
committerGitHub <noreply@github.com>2021-01-18 11:37:05 +0200
commit366a16ff0585fbc60df630b9ae238cfedeaaf81a (patch)
treefc93ca7ea5f786981903a52798c546ca8848442b /src/util.c
parent522d93607a46e28b035c675fe066778c453e84ba (diff)
downloadredis-366a16ff0585fbc60df630b9ae238cfedeaaf81a.tar.gz
Update getTimeZone to long (#8346)
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index eca212e57..3243fa51e 100644
--- a/src/util.c
+++ b/src/util.c
@@ -749,7 +749,7 @@ sds getAbsolutePath(char *filename) {
* Gets the proper timezone in a more portable fashion
* i.e timezone variables are linux specific.
*/
-unsigned long getTimeZone(void) {
+long getTimeZone(void) {
#if defined(__linux__) || defined(__sun)
return timezone;
#else
@@ -758,7 +758,7 @@ unsigned long getTimeZone(void) {
gettimeofday(&tv, &tz);
- return tz.tz_minuteswest * 60UL;
+ return tz.tz_minuteswest * 60L;
#endif
}