diff options
author | Andreas Becker <atayoohoo@googlemail.com> | 2011-04-28 00:59:28 +0200 |
---|---|---|
committer | Katarina Machalkova <kmachalkova@suse.cz> | 2011-04-28 13:45:46 +0200 |
commit | 9ad4eeb4fa413b1a3e084d141c6eb01795f95b7f (patch) | |
tree | 031b7ad30c650665210cb5b63d59efe740fd57d1 /crashrep | |
parent | 8a9f54bc1283b7137a90506e29dba7962dd73f83 (diff) |
fixed cppcheck warnings
Diffstat (limited to 'crashrep')
-rw-r--r-- | crashrep/source/unx/main.cxx | 8 | ||||
-rw-r--r-- | crashrep/source/win32/base64.cpp | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/crashrep/source/unx/main.cxx b/crashrep/source/unx/main.cxx index f0e6630658c5..ed257e17fe81 100644 --- a/crashrep/source/unx/main.cxx +++ b/crashrep/source/unx/main.cxx @@ -484,12 +484,9 @@ static void WriteSOAPRequest( FILE *fp ) struct RequestParams { - bool success; - FILE *fpin; + FILE *fpin; const char *pServer; - unsigned short uPort; const char *pProxyServer; - unsigned short uProxyPort; }; @@ -540,8 +537,7 @@ bool send_crash_report( const boost::unordered_map< string, string >& rSettings static bool append_file( const char *filename, string& rString ) { - char buf[1024]; - bool bSuccess = false; + char buf[1024]; FILE *fp = fopen( filename, "r" ); if ( fp ) diff --git a/crashrep/source/win32/base64.cpp b/crashrep/source/win32/base64.cpp index 82d54fb4e16d..bd59350a7f43 100644 --- a/crashrep/source/win32/base64.cpp +++ b/crashrep/source/win32/base64.cpp @@ -34,7 +34,6 @@ static const char base64_tab[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst extern "C" size_t base64_encode( FILE *fin, FILE *fout ) { - size_t nBytesRead = 0; size_t nLineLength = 0; size_t nBytesWritten = 0; @@ -46,7 +45,6 @@ extern "C" size_t base64_encode( FILE *fin, FILE *fout ) memset( in_buffer, 0, sizeof(in_buffer) ); nBytes = fread( in_buffer, 1, sizeof(in_buffer), fin ); - nBytesRead += nBytes; if ( nBytes ) { |