From 4fb0a9e9c933ef2ef31c8a1e6b4c18ef3c4f0274 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Fri, 13 May 2022 23:47:10 +0800 Subject: [PATCH] Fix spelling errors found by lintian Gbp-Pq: Name 093_fix-typos.patch --- doc/FAQ | 2 +- doc/doc.gpm.in | 2 +- src/daemon/old_main.c | 2 +- src/mice.c | 2 +- src/prog/mouse-test.c | 2 +- src/synaptics.c | 18 +++++++++--------- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/doc/FAQ b/doc/FAQ index d393eaf..9ba3586 100644 --- a/doc/FAQ +++ b/doc/FAQ @@ -132,7 +132,7 @@ A: Bill chose to use its own Plug-and-Pray specification, which finally to keep hold of processor time for at least 1 second). - no pnp vendor will be able to support three buttons any more (no more mouse protocols, all mice must behave the same). - - similary, only 1200 baud devices (any serial device) are supported, + - similarly, only 1200 baud devices (any serial device) are supported, because the initialization string of pnp devices only tells the vendor and release, with no information about required port configuration. diff --git a/doc/doc.gpm.in b/doc/doc.gpm.in index 77a4d42..829e07e 100644 --- a/doc/doc.gpm.in +++ b/doc/doc.gpm.in @@ -394,7 +394,7 @@ Available command line options are the following: automatically forces the @emph{repeater} (@samp{\-R}) option on. @item \-o @var{list-of-extra-options} - The option works similary to the ``\-o'' option of mount; it is + The option works similarly to the ``\-o'' option of mount; it is used to specify a list of ``extra options'' that are specific to each mouse type. The list is comma-separated. The options @samp{dtr}, @samp{rts} or @samp{both} are used by the serial diff --git a/src/daemon/old_main.c b/src/daemon/old_main.c index 38087a4..aba44d6 100644 --- a/src/daemon/old_main.c +++ b/src/daemon/old_main.c @@ -190,7 +190,7 @@ int old_main() /*....................................... got mouse, process event */ /* * Well, actually, run a loop to maintain inlining of functions without - * lenghtening the file. This is not too clean a code, but it works.... + * lengthening the file. This is not too clean a code, but it works.... */ for (i=1; i <= 1+opt_double; i++) { diff --git a/src/mice.c b/src/mice.c index 2e8f708..3aa4838 100644 --- a/src/mice.c +++ b/src/mice.c @@ -122,7 +122,7 @@ static int parse_argv(argv_helper *info, int argc, char **argv) break; } if (p->type == ARGV_END) { /* not found */ - fprintf(stderr, "%s: Uknown option \"%s\" for pointer \"%s\"\n", + fprintf(stderr, "%s: Unknown option \"%s\" for pointer \"%s\"\n", option.progname, argv[i], argv[0]); errors++; continue; diff --git a/src/prog/mouse-test.c b/src/prog/mouse-test.c index 0bb1982..7d29ed4 100644 --- a/src/prog/mouse-test.c +++ b/src/prog/mouse-test.c @@ -524,7 +524,7 @@ int main(int argc, char **argv) Gpm_Event event; if (packetsize!=cur->this->packetlen) { - REMOVETYPE(cur,"different packet lenght"); + REMOVETYPE(cur,"different packet length"); continue; } diff --git a/src/synaptics.c b/src/synaptics.c index 2418c75..7e15936 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -2471,7 +2471,7 @@ static void syn_serial_read_cap (int fd, #define PS2_SCALE_11 0xE6 /* Set scale to 1:1 */ -/* Normal ps2 responce */ +/* Normal ps2 response */ #define PS2_ERROR 0xFC /* Error, after a reset,resend or disconnect*/ #define PS2_ACK 0xFA /* Command acknowledge */ #define PS2_READY 0xAA /* Send after a calibration or ERROR */ @@ -2538,7 +2538,7 @@ static byte tp_ps2_putbyte(int fd, } # ifdef DEBUG_PUTBYTE_ACK - gpm_report(GPM_PR_DEBUG,"Responce %X to byte %X",ack,b); + gpm_report(GPM_PR_DEBUG,"Response %X to byte %X",ack,b); # endif return ack; @@ -2565,11 +2565,11 @@ static byte syn_ps2_getbyte(int fd, int stick) /* Do some sanity checking */ if((response[0] & 0xFC) != 0x84) { - gpm_report (GPM_PR_ERR,"Byte 0 of stick device responce is not valid"); + gpm_report (GPM_PR_ERR,"Byte 0 of stick device response is not valid"); return -1; } if((response[3] & 0xCC) != 0xC4) { - gpm_report (GPM_PR_ERR,"Byte 3 of stick device responce is not valid"); + gpm_report (GPM_PR_ERR,"Byte 3 of stick device response is not valid"); return -1; } } @@ -2844,7 +2844,7 @@ static void syn_ps2_send_reset(int fd, int stick) byte status,id_code = PS2_MOUSE_IDCODE; byte reset_cmd = PS2_RESET; - gpm_report(GPM_PR_DEBUG,"Reseting Synaptic PS/2 %s\n",(stick?"Stick":"Touchpad")); + gpm_report(GPM_PR_DEBUG,"Resetting Synaptic PS/2 %s\n",(stick?"Stick":"Touchpad")); /* Send reset command without eating the ack. */ if(!stick) { @@ -2871,11 +2871,11 @@ static void syn_ps2_send_reset(int fd, int stick) usleep(750000); if ( (status = syn_ps2_getbyte(fd,stick)) != PS2_READY ){ - gpm_report(GPM_PR_ERR,"Reseting PS/2 Device failed: No READY, got %02X.\n" + gpm_report(GPM_PR_ERR,"Resetting PS/2 Device failed: No READY, got %02X.\n" "Check pc_keyb.c for reconnect smartness.\n",status); } if ( (id_code = syn_ps2_getbyte(fd,stick)) != PS2_MOUSE_IDCODE){ - gpm_report(GPM_PR_ERR,"Reseting PS/2 Device failed: Wrong ID, got %02X.\n",id_code); + gpm_report(GPM_PR_ERR,"Resetting PS/2 Device failed: Wrong ID, got %02X.\n",id_code); } } @@ -3155,7 +3155,7 @@ void syn_process_serial_data (Gpm_Event *state, void syn_serial_reset(int fd) { - gpm_report (GPM_PR_INFO,"Reseting Synaptic Serial Touchpad."); + gpm_report (GPM_PR_INFO,"Resetting Synaptic Serial Touchpad."); syn_serial_set_mode (fd, (RELATIVE_MODE | HIGH_REPORT_RATE | @@ -3247,7 +3247,7 @@ void syn_process_ps2_data (Gpm_Event *state, void syn_ps2_reset (int fd) { - gpm_report (GPM_PR_INFO,"Reseting Synaptic PS/2 Touchpad."); + gpm_report (GPM_PR_INFO,"Resetting Synaptic PS/2 Touchpad."); /* Stop incoming motion data (of whatever kind absolute/relative). */ tp_ps2_disable_data(fd);