[PATCH 10/18] remove-T-option.patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



===================================================================


ChangeSet@xxxx, 2004-08-10 00:53:19-05:00, dtor_core@xxxxxxxxxxxxx
  Remove -T (test) option.


 gpm.c             |    2 --
 gpn.c             |    2 --
 headers/gpmInt.h  |    1 -
 headers/message.h |    1 -
 startup.c         |    1 -
 5 files changed, 7 deletions(-)


===================================================================



diff -Nru a/src/gpm.c b/src/gpm.c
--- a/src/gpm.c	2004-08-10 01:17:59 -05:00
+++ b/src/gpm.c	2004-08-10 01:17:59 -05:00
@@ -81,7 +81,6 @@
 
    /*....................................... read and identify one byte */
    if (read(fd, data, type->howmany) != type->howmany) {
-      if (option.test) exit(0);
       gpm_report(GPM_PR_ERR, GPM_MESS_READ_FIRST, strerror(errno));
       return NULL;
    }
@@ -481,7 +480,6 @@
    while (1) {
       selSet = readySet;
       resetTimeout();
-      if (option.test) timeout.tv_sec = 0;
 
       while ((pending = select(maxfd + 1, &selSet, NULL_SET, NULL_SET, &timeout)) == 0) {
          selSet = readySet;
diff -Nru a/src/gpn.c b/src/gpn.c
--- a/src/gpn.c	2004-08-10 01:17:59 -05:00
+++ b/src/gpn.c	2004-08-10 01:17:59 -05:00
@@ -203,8 +203,6 @@
                      break;
          case 'u':   option.autodetect = 1;
                      break;
-         case 'T':   option.test++;
-                     break;
          case 'v':   printf(GPM_MESS_VERSION "\n");
                      exit(0);
          case '2':   opt->three_button = -1;
diff -Nru a/src/headers/gpmInt.h b/src/headers/gpmInt.h
--- a/src/headers/gpmInt.h	2004-08-10 01:17:59 -05:00
+++ b/src/headers/gpmInt.h	2004-08-10 01:17:59 -05:00
@@ -167,7 +167,6 @@
 
 struct options {
    int autodetect;            /* -u [aUtodetect..'A' is not available] */
-   int test;
    int run_status;            /* startup/daemon/debug */
    char *progname;            /* hopefully gpm ;) */
 };
diff -Nru a/src/headers/message.h b/src/headers/message.h
--- a/src/headers/message.h	2004-08-10 01:17:59 -05:00
+++ b/src/headers/message.h	2004-08-10 01:17:59 -05:00
@@ -96,7 +96,6 @@
          "    -S [commands]    enable special commands (see man page)\n" \
          "    -t mouse-type    sets mouse type (default '%s')\n" \
          "                     Use a non-existent type (e.g. \"help\") to get a list\n" \
-         "    -T               test: read mouse, no clients\n" \
          "    -v               print version and exit\n" \
          "    -V verbosity     increase number of logged messages\n\n\n" \
          "    Examples:\n\n" \
diff -Nru a/src/startup.c b/src/startup.c
--- a/src/startup.c	2004-08-10 01:17:59 -05:00
+++ b/src/startup.c	2004-08-10 01:17:59 -05:00
@@ -53,7 +53,6 @@
    /* basic settings */
    option.run_status    = GPM_RUN_STARTUP;      /* 10,9,8,... let's go */
    option.autodetect    = 0;                    /* no mouse autodection */
-   option.test          = 0;
    option.progname      = argv[0];              /* who we are */
 
    console.device       = Gpm_get_console();    /* get consolename */
_______________________________________________
gpm mailing list
gpm@xxxxxxxxxxxxxx
http://lists.linux.it/listinfo/gpm

[Index of Archives]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Gimp]     [Yosemite News]