diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-01-19 20:12:04 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-01-19 20:12:04 +0000 |
commit | 44fb7e9e5fb9db8ef1876c32a2a6e296c9215c3e (patch) | |
tree | 3b14efbdacb1b71dead76ccc816bb302ee331703 /protocols/Xfire/src/tools.cpp | |
parent | 55fc2fe4049b4deab8198ebc83d9597f189349e5 (diff) |
more translation fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@7771 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/tools.cpp')
-rw-r--r-- | protocols/Xfire/src/tools.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/Xfire/src/tools.cpp b/protocols/Xfire/src/tools.cpp index da6730ca8d..1d0cd55127 100644 --- a/protocols/Xfire/src/tools.cpp +++ b/protocols/Xfire/src/tools.cpp @@ -896,13 +896,13 @@ BOOL CheckWWWContent(char*address) { Netlib_Logf(hNetlib,"Check Url %s ...",address);
//netlib request
- NETLIBHTTPREQUEST nlhr={0},*nlhrReply;
+ NETLIBHTTPREQUEST nlhr={0};
nlhr.cbSize = sizeof(nlhr);
nlhr.requestType= REQUEST_HEAD;
nlhr.flags = NLHRF_NODUMP|NLHRF_GENERATEHOST|NLHRF_SMARTAUTHHEADER;
nlhr.szUrl = address;
- nlhrReply=(NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION,(WPARAM)hNetlib,(LPARAM)&nlhr);
+ NETLIBHTTPREQUEST *nlhrReply=(NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION,(WPARAM)hNetlib,(LPARAM)&nlhr);
if (nlhrReply) {
//nicht auf dem server
@@ -932,13 +932,13 @@ BOOL GetWWWContent2(char*address,char*filename,BOOL dontoverwrite,char**tobuf,un Netlib_Logf(hNetlib,"Download Url %s ...",address);
//netlib request
- NETLIBHTTPREQUEST nlhr={0},*nlhrReply;
+ NETLIBHTTPREQUEST nlhr={0};
nlhr.cbSize = sizeof(nlhr);
nlhr.requestType= REQUEST_GET;
nlhr.flags = NLHRF_NODUMP|NLHRF_GENERATEHOST|NLHRF_SMARTAUTHHEADER;
nlhr.szUrl = address;
- nlhrReply=(NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION,(WPARAM)hNetlib,(LPARAM)&nlhr);
+ NETLIBHTTPREQUEST *nlhrReply=(NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION,(WPARAM)hNetlib,(LPARAM)&nlhr);
if (nlhrReply) {
//nicht auf dem server
@@ -1002,8 +1002,7 @@ BOOL GetWWWContent(char*host,char* request,char*filename,BOOL dontoverwrite) { unsigned int getfilesize(char*path)
{
- FILE * f = NULL;
- f=fopen(path,"rb");
+ FILE *f=fopen(path,"rb");
if (f==NULL)
return 0;
fseek (f, 0, SEEK_END);
|