Skip to content

Commit 290ddf6

Browse files
committed
Fix some typos
Found with codespell.
1 parent a8ba6d4 commit 290ddf6

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/pcapdump.docbook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<refsect1>
2323
<title>DESCRIPTION</title>
24-
<para><command>pcapdump</command> captures packets from a network interface and writes them to a dumpfile. The filename argument given to <option>-w</option> will be formated by <function>strftime(3)</function>.</para>
24+
<para><command>pcapdump</command> captures packets from a network interface and writes them to a dumpfile. The filename argument given to <option>-w</option> will be formatted by <function>strftime(3)</function>.</para>
2525
</refsect1>
2626

2727
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pcapnet.docbook"/>

src/pcapuc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static void parse_args(int argc, char **argv){
185185
usage("need to specify a packet capture source");
186186
int c = count_src_only + count_dst_only + count_pairs_only;
187187
if(c > 1)
188-
usage("mutually exclusive options selecetd");
188+
usage("mutually exclusive options selected");
189189
else if(c == 0)
190190
usage("select a counting mode");
191191
}

util/net.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ struct dnshdr {
213213
/* fields in third byte */
214214
unsigned qr: 1; /* response flag */
215215
unsigned opcode: 4; /* purpose of message */
216-
unsigned aa: 1; /* authoritive answer */
216+
unsigned aa: 1; /* authoritative answer */
217217
unsigned tc: 1; /* truncated message */
218218
unsigned rd: 1; /* recursion desired */
219219
/* fields in fourth byte */
@@ -227,7 +227,7 @@ struct dnshdr {
227227
/* fields in third byte */
228228
unsigned rd :1; /* recursion desired */
229229
unsigned tc :1; /* truncated message */
230-
unsigned aa :1; /* authoritive answer */
230+
unsigned aa :1; /* authoritative answer */
231231
unsigned opcode :4; /* purpose of message */
232232
unsigned qr :1; /* response flag */
233233
/* fields in fourth byte */

0 commit comments

Comments
 (0)