From 95d03118cb92c63144fa300a3ec4b1e1dca65881 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 26 Jun 2016 22:54:07 +0200 Subject: [PATCH] Typos. Mostly by Lintian Signed-off-by: Tzafrir Cohen --- dahdi_test.c | 2 +- doc/dahdi_tool.8 | 2 +- doc/fxotune.8 | 6 +++--- xpp/astribank_hexload.8 | 2 +- xpp/astribank_is_starting.8 | 2 +- xpp/astribank_tool.c | 6 +++--- xpp/xpp_fxloader | 2 +- xpp/xpp_sync | 2 +- xpp/xtalk/xtalk_sync.c | 2 +- xpp/xtalk/xusb_common.c | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dahdi_test.c b/dahdi_test.c index d07a1f6..ca1bc0e 100644 --- a/dahdi_test.c +++ b/dahdi_test.c @@ -64,7 +64,7 @@ void hup_handler(int sig) printf("\n--- Results after %d passes ---\n", pass); printf("Best: %.3f%% -- Worst: %.3f%% -- Average: %f%%\n", best, worst, pass ? total/pass : 100.00); - printf("Cummulative Accuracy (not per pass): %0.3f\n", + printf("Cumulative Accuracy (not per pass): %0.3f\n", pass ? accuracy : 0.0); exit(0); } diff --git a/doc/dahdi_tool.8 b/doc/dahdi_tool.8 index 2777366..4b6aeab 100644 --- a/doc/dahdi_tool.8 +++ b/doc/dahdi_tool.8 @@ -7,7 +7,7 @@ dahdi_tool \- Shows status of DAHDI interfaces .B dahdi_tool .SH DESCRIPTION -dahdi_tool shows the current status the DAHDI inteface cards plugged +dahdi_tool shows the current status the DAHDI interface cards plugged to the computer. It displays values like Current Alarms, SyncSource, Tx/Rx diff --git a/doc/fxotune.8 b/doc/fxotune.8 index d3257fc..a9de558 100644 --- a/doc/fxotune.8 +++ b/doc/fxotune.8 @@ -33,7 +33,7 @@ is generated in the current directory. fxotune just reads the settings from fxotune.conf into the FXO modules. You are advised to run fxotune on all FXO ports you have that support -it and that are connected. Note that the tunning is affected by e.g. +it and that are connected. Note that the tuning is affected by e.g. the physical parameters of the connection, and thus if it has been radically changed, you may need to re-run fxotune. @@ -44,7 +44,7 @@ cards and clones) do not have the hardware to support such tuning. The tuning process needs a clear line to do the tuning. In order to do that, it runs in cycles of the following: sets the line off-hook, dials a dial string (which should set the PSTN provider waiting for the next -digit), and then starts tuning. It has a limited ammount of time for +digit), and then starts tuning. It has a limited amount of time for tuning before the PSTN gives up and gives a busy tone. So after a while it hangs up and starts a new cycle. @@ -180,7 +180,7 @@ so if you stop it half-way, you may get a half-configured system. If you have already tuned your FXO channels and wish to test-run fxotune again, you are advised to backup /etc/fxotune.conf . -The default for \-m is 18 seconds. This asusmes that you get a clear line +The default for \-m is 18 seconds. This assumes that you get a clear line for at least 18 seconds. It is advised that you test that timeout earlier by connecting a phone to the FXO line, dialing 4 (or whatever dial string you put with \-n) and see how much time of silence you have. diff --git a/xpp/astribank_hexload.8 b/xpp/astribank_hexload.8 index 27913ff..dd6c433 100644 --- a/xpp/astribank_hexload.8 +++ b/xpp/astribank_hexload.8 @@ -117,7 +117,7 @@ Examples: 1:T1,2:T1,*:E1 \- First and second ports are T1, the rest are E1. .RE -If the \fB\-S\fR is not given, the PRI default is determined by the existance of the \fB\-A-fR option. +If the \fB\-S\fR is not given, the PRI default is determined by the existence of the \fB\-A-fR option. .RE .SH SEE ALSO diff --git a/xpp/astribank_is_starting.8 b/xpp/astribank_is_starting.8 index 5ad0be1..dcf27c4 100644 --- a/xpp/astribank_is_starting.8 +++ b/xpp/astribank_is_starting.8 @@ -83,7 +83,7 @@ Q: Why do you use a semaphore? A: because, unlike the filesystem, it is writable at any given time. .SH BUGS -Option ordering matter. The \fB\-v\fR and \fB\-d\fR options should preceed +Option ordering matter. The \fB\-v\fR and \fB\-d\fR options should precede the actions (\fB\-a\fR, \fB\-r\fR and \fB\-w\fR). The \fB\-t\fItimeout\fR option should preceed the \fB\-w\fR option. diff --git a/xpp/astribank_tool.c b/xpp/astribank_tool.c index 7be04fb..59d096f 100644 --- a/xpp/astribank_tool.c +++ b/xpp/astribank_tool.c @@ -72,7 +72,7 @@ static int reset_kind(const char *arg) if(strcasecmp(reset_kinds[i].name, arg) == 0) return reset_kinds[i].type_code; } - ERR("Uknown reset kind '%s'\n", arg); + ERR("Unknown reset kind '%s'\n", arg); return -1; } @@ -157,9 +157,9 @@ int main(int argc, char *argv[]) ERR("Bad reset kind '%s'\n", opt_reset); return 1; } - DBG("Reseting (%s)\n", opt_reset); + DBG("Resetting (%s)\n", opt_reset); if((ret = mpp_reset(mpp, full_reset)) < 0) { - ERR("%s Reseting astribank failed: %d\n", + ERR("%s Resetting astribank failed: %d\n", (full_reset) ? "Full" : "Half", ret); } goto out; diff --git a/xpp/xpp_fxloader b/xpp/xpp_fxloader index 5135ebf..a61f5dc 100644 --- a/xpp/xpp_fxloader +++ b/xpp/xpp_fxloader @@ -443,7 +443,7 @@ fpga_firmware_all_devices() { reset_fpga() { devices=`filter_devs 'e4e4/11[3456][124]/*'` totaldevs=`numdevs 'e4e4/11[3456][124]/*'` - echo >&2 -- "Reseting devices [$totaldevs devices]" + echo >&2 -- "Resetting devices [$totaldevs devices]" echo "$devices" | grep -v '^$' | while read id_str dev do ( diff --git a/xpp/xpp_sync b/xpp/xpp_sync index 1d84b8b..5726a9b 100755 --- a/xpp/xpp_sync +++ b/xpp/xpp_sync @@ -64,7 +64,7 @@ sub do_select(@) { foreach my $xpd (@_) { my $xbus = $xpd->xbus; my $busnum = $xbus->name; - die "Uknown bus name" unless $busnum; + die "Unknown bus name" unless $busnum; $busnum =~ s/XBUS-//; die "bad bus name" unless $busnum =~ /^\d+$/; #printf "Setting sync: %-10s (%s)\n", $xpd->fqn, $xpd->type; diff --git a/xpp/xtalk/xtalk_sync.c b/xpp/xtalk/xtalk_sync.c index c0be8fd..18a5cad 100644 --- a/xpp/xtalk/xtalk_sync.c +++ b/xpp/xtalk/xtalk_sync.c @@ -183,7 +183,7 @@ int process_command( } DBG("REPLY OP: 0x%X [%s]\n", reply->header.op, reply_desc->name); if (reply->header.op == XTALK_ACK) { - int status = CMD_FIELD(reply, XTALK, ACK, stat); + uint8_t status = CMD_FIELD(reply, XTALK, ACK, stat); if (expected) { ERR("Expected OP=0x%02X: Got ACK(%d): %s\n", diff --git a/xpp/xtalk/xusb_common.c b/xpp/xtalk/xusb_common.c index e5d4bbd..cb8c6fa 100644 --- a/xpp/xtalk/xusb_common.c +++ b/xpp/xtalk/xusb_common.c @@ -215,7 +215,7 @@ int xusb_filter_bypath(const struct xusb_device *xusb_device, void *data) assert(path != NULL); p = path_tail(path); if (strcmp(xusb_device->devpath_tail, p) != 0) { - DBG("%s: device path missmatch (!= '%s')\n", + DBG("%s: device path mismatch (!= '%s')\n", xusb_device->devpath_tail, p); return 0; }