[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 129/208: smb: rename variable to fix shadowing warn
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 129/208: smb: rename variable to fix shadowing warning |
Date: |
Wed, 09 Aug 2017 17:35:26 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.
commit 59a0fb24390bc9387d3404e5f3dcde33bf80dffa
Author: Marcel Raad <address@hidden>
AuthorDate: Sat Jul 8 23:19:36 2017 +0200
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.
---
lib/smb.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/smb.c b/lib/smb.c
index 8ae4303b0..13dfd514b 100644
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -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)
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 45/208: RELEASE-NOTES: synced with 3b80d3ca4, (continued)
- [GNUnet-SVN] [gnurl] 45/208: RELEASE-NOTES: synced with 3b80d3ca4, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 75/208: CURLOPT_SOCKS5_AUTH: allowed methods for SOCKS5 proxy auth, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 126/208: travis: install stunnel, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 160/208: curl_rtmp: fix a compiler warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 136/208: tests: Fix up issues with errno in test files, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 161/208: include.d: clarify that it concerns the response headers, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 62/208: maketgz: switch to -6e for xz, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 153/208: nss: unify the coding style of nss_send() and nss_recv(), gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 145/208: winbuild: build with warning level 4, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 53/208: lib: fix the djgpp build, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 129/208: smb: rename variable to fix shadowing warning,
gnunet <=
- [GNUnet-SVN] [gnurl] 152/208: tests/server/resolve.c: fix deprecation warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 68/208: curl/system.h: add check for XTENSA for 32bit gcc, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 148/208: sockfilt: suppress conversion warning with explicit cast, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 144/208: travis: install libidn2, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 125/208: valgrind.supp: supress OpenSSL false positive seen on travis, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 167/208: include.d: clarify --include is only for response headers, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 195/208: gssapi: fix memory leak of output token in multi round context, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 193/208: CMake: fix CURL_WERROR for MSVC, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 133/208: ldap: fix MinGW compiler warning, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 66/208: progress: progress.timespent needs to be us, gnunet, 2017/08/09