Project "Tuxbox-GIT: apps": The branch, master has been updated via d3f09d1d2a545a728407dbb255eea4b050c8d282 (commit) from 0be97e87fa41e35f92c666a5bb6e148ae758a209 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit d3f09d1d2a545a728407dbb255eea4b050c8d282 Author: Stefan Seyfried <se...@tuxbox-git.slipkontur.de> Date: Mon Jun 1 22:14:43 2015 +0200 this threw a lot of "warning: suggest a space before ';' or explicit braces around empty body in 'for' statement" Signed-off-by: GetAway <get-a...@t-online.de> diff --git a/tuxbox/neutrino/src/driver/netfile.cpp b/tuxbox/neutrino/src/driver/netfile.cpp index a8e7165..74b79ca 100644 --- a/tuxbox/neutrino/src/driver/netfile.cpp +++ b/tuxbox/neutrino/src/driver/netfile.cpp @@ -523,7 +523,7 @@ int request_file(URL *url) if(_ptr) \ { \ _ptr = strchr(_ptr, ':'); \ - for(; !isalnum(*_ptr); _ptr++); \ + for(; !isalnum(*_ptr); _ptr++) {}; \ b = atoi(_ptr); \ } else b = -1; } @@ -534,7 +534,7 @@ int request_file(URL *url) { \ unsigned int i; \ _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]; \ b[i] = 0; \ } } @@ -749,7 +749,7 @@ FILE *f_open(const char *filename, const char *acctype) URL url; FILE *fd; int /*i,*/ compatibility_mode = 0; - char *ptr = NULL, buf[4096], type[10]; + char *ptr = NULL, buf[4096] = {0} , type[10] = {0}; if(acctype) strcpy(type, acctype); @@ -1674,7 +1674,7 @@ int f_status(FILE *stream, void (*cb)(void*)) /* information into the CSTATE structure */ 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; /* abort if we were submitted a NULL pointer */ ----------------------------------------------------------------------- Summary of changes: tuxbox/neutrino/src/driver/netfile.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) -- Tuxbox-GIT: apps ------------------------------------------------------------------------------ _______________________________________________ Tuxbox-cvs-commits mailing list Tuxbox-cvs-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tuxbox-cvs-commits