aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-02-26 04:42:26 +0000
committerBill Meier <wmeier@newsguy.com>2013-02-26 04:42:26 +0000
commit96a24cc79f7a32851cc2005603e32633389043a3 (patch)
tree62c91332176b091409c8f06937bbce734155981e /wiretap
parenta6e56df8b683bb696655c331f64f22abc8f36af4 (diff)
Fix spelling/typos found using a list of commonly misspelled words.
The misspellings were mostly in comments but some were in text strings visible to the user. svn path=/trunk/; revision=47899
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/csids.c2
-rw-r--r--wiretap/vms.c34
2 files changed, 18 insertions, 18 deletions
diff --git a/wiretap/csids.c b/wiretap/csids.c
index 08f60f05ea..a60fd11f39 100644
--- a/wiretap/csids.c
+++ b/wiretap/csids.c
@@ -63,7 +63,7 @@ int csids_open(wtap *wth, int *err, gchar **err_info)
{
/* There is no file header. There is only a header for each packet
* so we read a packet header and compare the caplen with iplen. They
- * should always be equal except with the wierd byteswap version.
+ * should always be equal except with the weird byteswap version.
*
* THIS IS BROKEN-- anytime the caplen is 0x0101 or 0x0202 up to 0x0505
* this will byteswap it. I need to fix this. XXX --mlh
diff --git a/wiretap/vms.c b/wiretap/vms.c
index 36db1def18..56ae0c378e 100644
--- a/wiretap/vms.c
+++ b/wiretap/vms.c
@@ -68,17 +68,17 @@
Example UCX$TRACE output data:
- UCX INTERnet trace RCV packet seq # = 1 at 14-MAY-2003 11:32:10.93
+ UCX INTERnet trace RCV packet seq # = 1 at 14-MAY-2003 11:32:10.93
- IP Version = 4, IHL = 5, TOS = 00, Total Length = 583 = ^x0247
- IP Identifier = ^x702E, Flags (0=0,DF=0,MF=0),
- Fragment Offset = 0 = ^x0000, Calculated Offset = 0 = ^x0000
- IP TTL = 128 = ^x80, Protocol = 17 = ^x11, Header Checksum = ^x70EC
- IP Source Address = 10.20.4.159
- IP Destination Address = 10.20.4.255
+ IP Version = 4, IHL = 5, TOS = 00, Total Length = 583 = ^x0247
+ IP Identifier = ^x702E, Flags (0=0,DF=0,MF=0),
+ Fragment Offset = 0 = ^x0000, Calculated Offset = 0 = ^x0000
+ IP TTL = 128 = ^x80, Protocol = 17 = ^x11, Header Checksum = ^x70EC
+ IP Source Address = 10.20.4.159
+ IP Destination Address = 10.20.4.255
- UDP Source Port = 138, UDP Destination Port = 138
- UDP Header and Datagram Length = 563 = ^x0233, Checksum = ^xB913
+ UDP Source Port = 138, UDP Destination Port = 138
+ UDP Header and Datagram Length = 563 = ^x0233, Checksum = ^xB913
9F04140A 70EC1180 0000702E 47020045 0000 E..G.p.....p....
B1B80E11 | B9133302 8A008A00 | FF04140A 0010 .........3......
@@ -161,7 +161,7 @@ static long vms_seek_next_packet(wtap *wth, int *err, gchar **err_info)
{
long cur_off;
char buf[VMS_LINE_LENGTH];
-
+
while (1) {
cur_off = file_tell(wth->fh);
if (cur_off == -1) {
@@ -192,7 +192,7 @@ static long vms_seek_next_packet(wtap *wth, int *err, gchar **err_info)
* if we get an I/O error, "*err" will be set to a non-zero value and
* "*err_info will be set to null or an additional error string.
*
- * Leaves file handle at begining of line that contains the VMS Magic
+ * Leaves file handle at beginning of line that contains the VMS Magic
* identifier.
*/
static gboolean vms_check_file_type(wtap *wth, int *err, gchar **err_info)
@@ -200,9 +200,9 @@ static gboolean vms_check_file_type(wtap *wth, int *err, gchar **err_info)
char buf[VMS_LINE_LENGTH];
guint reclen, line;
gint64 mpos;
-
+
buf[VMS_LINE_LENGTH-1] = '\0';
-
+
for (line = 0; line < VMS_HEADER_LINES_TO_CHECK; line++) {
mpos = file_tell(wth->fh);
if (mpos == -1) {
@@ -215,14 +215,14 @@ static gboolean vms_check_file_type(wtap *wth, int *err, gchar **err_info)
*err = file_error(wth->fh, err_info);
return FALSE;
}
-
+
reclen = (guint) strlen(buf);
if (reclen < strlen(VMS_HDR_MAGIC_STR1) ||
- reclen < strlen(VMS_HDR_MAGIC_STR2) ||
+ reclen < strlen(VMS_HDR_MAGIC_STR2) ||
reclen < strlen(VMS_HDR_MAGIC_STR3)) {
continue;
}
-
+
if (strstr(buf, VMS_HDR_MAGIC_STR1) ||
strstr(buf, VMS_HDR_MAGIC_STR2) ||
strstr(buf, VMS_HDR_MAGIC_STR3)) {
@@ -376,7 +376,7 @@ parse_vms_rec_hdr(FILE_T fh, struct wtap_pkthdr *phdr, int *err, gchar **err_inf
/* Find text in line starting with "packet ". */
/* First look for the Format 1 type sequencing */
- num_items_scanned = sscanf(p,
+ num_items_scanned = sscanf(p,
"packet %9d at %2d-%3s-%4d %2d:%2d:%2d.%9d",
&pktnum, &tm.tm_mday, mon,
&tm.tm_year, &tm.tm_hour,