fix compiler warnings in netfile.cpp

this threw a lot of "warning: suggest a space before ';' or explicit
braces around empty body in 'for' statement"

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1266 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2011-03-06 18:18:59 +00:00
parent 4ae7837cb9
commit 35388c609f

View File

@@ -539,7 +539,7 @@ int request_file(URL *url)
if(_ptr) \ if(_ptr) \
{ \ { \
_ptr = strchr(_ptr, ':'); \ _ptr = strchr(_ptr, ':'); \
for(; !isalnum(*_ptr); _ptr++); \ for(; !isalnum(*_ptr); _ptr++) {}; \
b = atoi(_ptr); \ b = atoi(_ptr); \
} else b = -1; } } else b = -1; }
@@ -550,7 +550,7 @@ int request_file(URL *url)
{ \ { \
unsigned int i; \ unsigned int i; \
_ptr = strchr(_ptr, ':'); \ _ptr = strchr(_ptr, ':'); \
for(_ptr++; isspace(*_ptr); _ptr++); \ for(_ptr++; isspace(*_ptr); _ptr++) {}; \
for (i=0; (_ptr[i]!='\n') && (_ptr[i]!='\r') && (_ptr[i]!='\0') && (i<sizeof(b)); i++) b[i] = _ptr[i]; \ for (i=0; (_ptr[i]!='\n') && (_ptr[i]!='\r') && (_ptr[i]!='\0') && (i<sizeof(b)); i++) b[i] = _ptr[i]; \
b[i] = 0; \ b[i] = 0; \
} } } }
@@ -1693,7 +1693,7 @@ int f_status(FILE *stream, void (*cb)(void*))
/* information into the CSTATE structure */ /* information into the CSTATE structure */
void ShoutCAST_ParseMetaData(char *md, CSTATE *state) void ShoutCAST_ParseMetaData(char *md, CSTATE *state)
{ {
#define SKIP(a) for(;(a && !isalnum(*a)); ++a); #define SKIP(a) for(;(a && !isalnum(*a)); ++a) {};
char *ptr; char *ptr;
/* abort if we were submitted a NULL pointer */ /* abort if we were submitted a NULL pointer */