Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/abdfdd65f93b49898e5c8acfdbc0f09f77865d49
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/abdfdd65f93b49898e5c8acfdbc0f09f77865d49
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/abdfdd65f93b49898e5c8acfdbc0f09f77865d49

The branch, jmb/monkey-cc has been updated
       via  abdfdd65f93b49898e5c8acfdbc0f09f77865d49 (commit)
      from  77dbb795c7f61253fea0773fbfe54d5ae327bc48 (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=abdfdd65f93b49898e5c8acfdbc0f09f77865d49
commit abdfdd65f93b49898e5c8acfdbc0f09f77865d49
Author: John-Mark Bell <[email protected]>
Commit: John-Mark Bell <[email protected]>

    Monkey: use definition for stdin fd
    
    Just in case there's some platform out there that doesn't use 0.

diff --git a/frontends/monkey/main.c b/frontends/monkey/main.c
index e0009113f..fbc356c2f 100644
--- a/frontends/monkey/main.c
+++ b/frontends/monkey/main.c
@@ -293,10 +293,10 @@ static void monkey_run(void)
 
                /* add stdin to the set */
                if (max_fd < 0) {
-                       max_fd = 0;
+                       max_fd = STDIN_FILENO;
                }
-               FD_SET(0, &read_fd_set);
-               FD_SET(0, &exc_fd_set);
+               FD_SET(STDIN_FILENO, &read_fd_set);
+               FD_SET(STDIN_FILENO, &exc_fd_set);
 
                /* setup timeout */
                switch (schedtm) {
@@ -331,7 +331,7 @@ static void monkey_run(void)
                        NSLOG(netsurf, CRITICAL, "Unable to select: %s", 
strerror(errno));
                        monkey_done = true;
                } else if (rdy_fd > 0) {
-                       if (FD_ISSET(0, &read_fd_set)) {
+                       if (FD_ISSET(STDIN_FILENO, &read_fd_set)) {
                                monkey_process_command();
                        }
                }


-----------------------------------------------------------------------

Summary of changes:
 frontends/monkey/main.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/frontends/monkey/main.c b/frontends/monkey/main.c
index e0009113f..fbc356c2f 100644
--- a/frontends/monkey/main.c
+++ b/frontends/monkey/main.c
@@ -293,10 +293,10 @@ static void monkey_run(void)
 
                /* add stdin to the set */
                if (max_fd < 0) {
-                       max_fd = 0;
+                       max_fd = STDIN_FILENO;
                }
-               FD_SET(0, &read_fd_set);
-               FD_SET(0, &exc_fd_set);
+               FD_SET(STDIN_FILENO, &read_fd_set);
+               FD_SET(STDIN_FILENO, &exc_fd_set);
 
                /* setup timeout */
                switch (schedtm) {
@@ -331,7 +331,7 @@ static void monkey_run(void)
                        NSLOG(netsurf, CRITICAL, "Unable to select: %s", 
strerror(errno));
                        monkey_done = true;
                } else if (rdy_fd > 0) {
-                       if (FD_ISSET(0, &read_fd_set)) {
+                       if (FD_ISSET(STDIN_FILENO, &read_fd_set)) {
                                monkey_process_command();
                        }
                }


-- 
NetSurf Browser

Reply via email to