Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/ba9f5f8ef0ac7a1c6bb6dbfee63006a44902ca6d
...commit
http://git.netsurf-browser.org/netsurf.git/commit/ba9f5f8ef0ac7a1c6bb6dbfee63006a44902ca6d
...tree
http://git.netsurf-browser.org/netsurf.git/tree/ba9f5f8ef0ac7a1c6bb6dbfee63006a44902ca6d
The branch, master has been updated
via ba9f5f8ef0ac7a1c6bb6dbfee63006a44902ca6d (commit)
via c90bfb23adf10c0497b120a868df2d9bb8cafd86 (commit)
from fa64763b0d8c6566eda5f6547e7f2f3e62b77613 (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 -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=ba9f5f8ef0ac7a1c6bb6dbfee63006a44902ca6d
commit ba9f5f8ef0ac7a1c6bb6dbfee63006a44902ca6d
Author: brabo <[email protected]>
Commit: Michael Drake <[email protected]>
gtk/fetch.c & monkey/filetype.c: ascii_is_space already checks for newline.
diff --git a/frontends/gtk/fetch.c b/frontends/gtk/fetch.c
index e1550ff..58bd0b8 100644
--- a/frontends/gtk/fetch.c
+++ b/frontends/gtk/fetch.c
@@ -119,9 +119,7 @@ void gtk_fetch_filetype_init(const char *mimefile)
/* search for the first whitespace char or NUL or
* NL */
- while (*ptr &&
- (!ascii_is_space(*ptr)) &&
- *ptr != '\n') {
+ while (*ptr && (!ascii_is_space(*ptr))) {
ptr++;
}
@@ -146,9 +144,7 @@ void gtk_fetch_filetype_init(const char *mimefile)
/* search for the first whitespace char or
* NUL or NL which is the end of the ext.
*/
- while (*ptr &&
- (!ascii_is_space(*ptr)) &&
- *ptr != '\n') {
+ while (*ptr && (!ascii_is_space(*ptr))) {
ptr++;
}
diff --git a/frontends/monkey/filetype.c b/frontends/monkey/filetype.c
index af93ef6..37853a6 100644
--- a/frontends/monkey/filetype.c
+++ b/frontends/monkey/filetype.c
@@ -112,7 +112,7 @@ void monkey_fetch_filetype_init(const char *mimefile)
/* search for the first whitespace char or NUL or
* NL */
- while (*ptr && (!ascii_is_space(*ptr)) && *ptr != '\n')
+ while (*ptr && (!ascii_is_space(*ptr)))
ptr++;
if (*ptr == '\0' || *ptr == '\n') {
@@ -135,8 +135,7 @@ void monkey_fetch_filetype_init(const char *mimefile)
/* search for the first whitespace char or
* NUL or NL which is the end of the ext.
*/
- while (*ptr && (!ascii_is_space(*ptr)) &&
- *ptr != '\n')
+ while (*ptr && (!ascii_is_space(*ptr)))
ptr++;
if (*ptr == '\0' || *ptr == '\n') {
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=c90bfb23adf10c0497b120a868df2d9bb8cafd86
commit c90bfb23adf10c0497b120a868df2d9bb8cafd86
Author: brabo <[email protected]>
Commit: Michael Drake <[email protected]>
gtk/fetch.c & monkey/filetype.c: small comment correction.
diff --git a/frontends/gtk/fetch.c b/frontends/gtk/fetch.c
index b05c1bd..e1550ff 100644
--- a/frontends/gtk/fetch.c
+++ b/frontends/gtk/fetch.c
@@ -117,7 +117,7 @@ void gtk_fetch_filetype_init(const char *mimefile)
type = ptr;
- /* search for the first non-whitespace char or NUL or
+ /* search for the first whitespace char or NUL or
* NL */
while (*ptr &&
(!ascii_is_space(*ptr)) &&
diff --git a/frontends/monkey/filetype.c b/frontends/monkey/filetype.c
index f0f22d0..af93ef6 100644
--- a/frontends/monkey/filetype.c
+++ b/frontends/monkey/filetype.c
@@ -110,7 +110,7 @@ void monkey_fetch_filetype_init(const char *mimefile)
type = ptr;
- /* search for the first non-whitespace char or NUL or
+ /* search for the first whitespace char or NUL or
* NL */
while (*ptr && (!ascii_is_space(*ptr)) && *ptr != '\n')
ptr++;
-----------------------------------------------------------------------
Summary of changes:
frontends/gtk/fetch.c | 10 +++-------
frontends/monkey/filetype.c | 7 +++----
2 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/frontends/gtk/fetch.c b/frontends/gtk/fetch.c
index b05c1bd..58bd0b8 100644
--- a/frontends/gtk/fetch.c
+++ b/frontends/gtk/fetch.c
@@ -117,11 +117,9 @@ void gtk_fetch_filetype_init(const char *mimefile)
type = ptr;
- /* search for the first non-whitespace char or NUL or
+ /* search for the first whitespace char or NUL or
* NL */
- while (*ptr &&
- (!ascii_is_space(*ptr)) &&
- *ptr != '\n') {
+ while (*ptr && (!ascii_is_space(*ptr))) {
ptr++;
}
@@ -146,9 +144,7 @@ void gtk_fetch_filetype_init(const char *mimefile)
/* search for the first whitespace char or
* NUL or NL which is the end of the ext.
*/
- while (*ptr &&
- (!ascii_is_space(*ptr)) &&
- *ptr != '\n') {
+ while (*ptr && (!ascii_is_space(*ptr))) {
ptr++;
}
diff --git a/frontends/monkey/filetype.c b/frontends/monkey/filetype.c
index f0f22d0..37853a6 100644
--- a/frontends/monkey/filetype.c
+++ b/frontends/monkey/filetype.c
@@ -110,9 +110,9 @@ void monkey_fetch_filetype_init(const char *mimefile)
type = ptr;
- /* search for the first non-whitespace char or NUL or
+ /* search for the first whitespace char or NUL or
* NL */
- while (*ptr && (!ascii_is_space(*ptr)) && *ptr != '\n')
+ while (*ptr && (!ascii_is_space(*ptr)))
ptr++;
if (*ptr == '\0' || *ptr == '\n') {
@@ -135,8 +135,7 @@ void monkey_fetch_filetype_init(const char *mimefile)
/* search for the first whitespace char or
* NUL or NL which is the end of the ext.
*/
- while (*ptr && (!ascii_is_space(*ptr)) &&
- *ptr != '\n')
+ while (*ptr && (!ascii_is_space(*ptr)))
ptr++;
if (*ptr == '\0' || *ptr == '\n') {
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org