diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2017-07-08 23:19:36 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2017-07-09 14:42:13 +0200 |
commit | 59a0fb24390bc9387d3404e5f3dcde33bf80dffa (patch) | |
tree | aeb840a07040c606978093dcf47c0f6a95231966 /lib/smb.c | |
parent | f601f42787f583e033f2af1cd88ce785f6af08d1 (diff) | |
download | curl-59a0fb24390bc9387d3404e5f3dcde33bf80dffa.tar.gz |
smb: rename variable to fix shadowing warning
GCC 4.6.3 on travis complains:
smb.c: In function ‘get_posix_time’:
smb.c:725:13: error: declaration of ‘time’ shadows a global declaration
[-Werror=shadow]
Fix this by renaming the variable.
Diffstat (limited to 'lib/smb.c')
-rw-r--r-- | lib/smb.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -722,14 +722,14 @@ static CURLcode smb_connection_state(struct connectdata *conn, bool *done) static void get_posix_time(long *_out, const void *_in) { #ifdef HAVE_LONGLONG - long long time = *(long long *) _in; + long long timestamp = *(long long *) _in; #else - unsigned __int64 time = *(unsigned __int64 *) _in; + unsigned __int64 timestamp = *(unsigned __int64 *) _in; #endif - time -= 116444736000000000ULL; - time /= 10000000; - *_out = (long) time; + timestamp -= 116444736000000000ULL; + timestamp /= 10000000; + *_out = (long) timestamp; } static CURLcode smb_request_state(struct connectdata *conn, bool *done) |