From: asterix Date: Mon, 3 Oct 2011 09:54:41 +0000 (+0000) Subject: Do not test for avr family. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=00a56e3c9af3422795c598fda5e9e6ff74ca6b48;p=bertos.git Do not test for avr family. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5129 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/net/http.c b/bertos/net/http.c index 1121362d..f994079b 100644 --- a/bertos/net/http.c +++ b/bertos/net/http.c @@ -38,6 +38,8 @@ * the cases where SD is not present or page not found, using embedded pages. * Quering from browser the /status page, the server return a json dictionary where are store * some board status info, like board temperature, up-time, etc. + * + * notest: avr */ #include "http.h" @@ -97,7 +99,7 @@ static void get_fileName(const char *revc_buf, size_t recv_len, char *name, size char *p = strstr(revc_buf, "GET"); if (p) { - //Find the end of the page request. + /* Find the end of the page request. */ char *stop = strstr(revc_buf, "HTTP"); if (!stop) { @@ -106,7 +108,7 @@ static void get_fileName(const char *revc_buf, size_t recv_len, char *name, size return; } - //skip the "/" in get string request + /* skip the "/" in get string request */ p += sizeof("GET") + 1; while (p != stop) @@ -121,7 +123,7 @@ static void get_fileName(const char *revc_buf, size_t recv_len, char *name, size } } - //Trail white space in the string. + /* Trail white space in the string. */ while ( --i >= 0 ) if (name[i] != ' ' && name[i] != '\t' && name[i] != '\n') break;