summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbcr <bcr@FreeBSD.org>2010-10-16 15:24:04 +0000
committerbcr <bcr@FreeBSD.org>2010-10-16 15:24:04 +0000
commit391f91aab5e3fd2fc1962325e0153a53cc91e42d (patch)
treee591cc7573cdbafedf1f20169adc039c918bf79c
parent1b1731a5575c618579523345b5817f4c82bab7f1 (diff)
downloadFreeBSD-src-391f91aab5e3fd2fc1962325e0153a53cc91e42d.zip
FreeBSD-src-391f91aab5e3fd2fc1962325e0153a53cc91e42d.tar.gz
Correct some typos in comments, no functional changes.
-rw-r--r--usr.bin/compress/zopen.c2
-rw-r--r--usr.bin/gzip/gzip.c2
-rw-r--r--usr.bin/gzip/unpack.c14
-rw-r--r--usr.bin/gzip/zuncompress.c2
-rw-r--r--usr.sbin/pmcannotate/pmcannotate.c2
5 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/compress/zopen.c b/usr.bin/compress/zopen.c
index f0ec887..7a20512 100644
--- a/usr.bin/compress/zopen.c
+++ b/usr.bin/compress/zopen.c
@@ -131,7 +131,7 @@ struct s_zstate {
code_int zs_ent;
code_int zs_hsize_reg;
int zs_hshift;
- } w; /* Write paramenters */
+ } w; /* Write parameters */
struct {
char_type *zs_stackp;
int zs_finchar;
diff --git a/usr.bin/gzip/gzip.c b/usr.bin/gzip/gzip.c
index 3f9bb4a..d86e84b 100644
--- a/usr.bin/gzip/gzip.c
+++ b/usr.bin/gzip/gzip.c
@@ -1162,7 +1162,7 @@ unlink_input(const char *file, const struct stat *sb)
if (kflag)
return;
if (stat(file, &nsb) != 0)
- /* Must be gone alrady */
+ /* Must be gone already */
return;
if (nsb.st_dev != sb->st_dev || nsb.st_ino != sb->st_ino)
/* Definitely a different file */
diff --git a/usr.bin/gzip/unpack.c b/usr.bin/gzip/unpack.c
index cc717a6..0a1ed25 100644
--- a/usr.bin/gzip/unpack.c
+++ b/usr.bin/gzip/unpack.c
@@ -40,7 +40,7 @@
* tree levels, each level would consume 1 byte (See [1]).
*
* After the symbol count table, there is the symbol table, storing
- * symbols represented by coresponding leaf node. EOB is not being
+ * symbols represented by corresponding leaf node. EOB is not being
* explicitly transmitted (not necessary anyway) in the symbol table.
*
* Compressed data goes after the symbol table.
@@ -61,7 +61,7 @@
/*
* unpack descriptor
*
- * Represent the huffman tree in a similiar way that pack(1) would
+ * Represent the huffman tree in a similar way that pack(1) would
* store in a packed file. We store all symbols in a linear table,
* and store pointers to each level's first symbol. In addition to
* that, maintain two counts for each level: inner nodes count and
@@ -92,7 +92,7 @@ typedef struct {
* Caller is responsible to make sure that all of these pointers are
* initialized (in our case, they all point to valid memory block).
* We don't zero out pointers here because nobody else would ever
- * reference the memory block without scrubing them.
+ * reference the memory block without scrubbing them.
*/
static void
unpack_descriptor_fini(unpack_descriptor_t *unpackd)
@@ -117,7 +117,7 @@ unpackd_fill_inodesin(const unpack_descriptor_t *unpackd, int level)
/*
* The internal nodes would be 1/2 of total internal nodes and
* leaf nodes in the next level. For the last level there
- * would be no internal node by defination.
+ * would be no internal node by definition.
*/
if (level < unpackd->treelevels) {
unpackd_fill_inodesin(unpackd, level + 1);
@@ -140,7 +140,7 @@ accepted_bytes(off_t *bytes_in, off_t newbytes)
/*
* Read file header and construct the tree. Also, prepare the buffered I/O
- * for decode rountine.
+ * for decode routine.
*
* Return value is uncompressed size.
*/
@@ -195,7 +195,7 @@ unpack_parse_header(int in, int out, char *pre, size_t prelen, off_t *bytes_in,
/* We count from 0 so adjust to match array upper bound */
unpackd->treelevels--;
- /* Read the levels symbol count table and caculate total */
+ /* Read the levels symbol count table and calculate total */
unpackd->symbol_size = 1; /* EOB */
for (i = 0; i <= unpackd->treelevels; i++) {
if ((thisbyte = fgetc(unpackd->fpIn)) == EOF)
@@ -237,7 +237,7 @@ unpack_parse_header(int in, int out, char *pre, size_t prelen, off_t *bytes_in,
/*
* The symbolsin table has been constructed now.
- * Caculate the internal nodes count table based on it.
+ * Calculate the internal nodes count table based on it.
*/
unpackd_fill_inodesin(unpackd, 0);
}
diff --git a/usr.bin/gzip/zuncompress.c b/usr.bin/gzip/zuncompress.c
index dd0f249..8e619bd 100644
--- a/usr.bin/gzip/zuncompress.c
+++ b/usr.bin/gzip/zuncompress.c
@@ -115,7 +115,7 @@ struct s_zstate {
code_int zs_ent;
code_int zs_hsize_reg;
int zs_hshift;
- } w; /* Write paramenters */
+ } w; /* Write parameters */
struct {
char_type *zs_stackp;
int zs_finchar;
diff --git a/usr.sbin/pmcannotate/pmcannotate.c b/usr.sbin/pmcannotate/pmcannotate.c
index 1f39f25..34d2417 100644
--- a/usr.sbin/pmcannotate/pmcannotate.c
+++ b/usr.sbin/pmcannotate/pmcannotate.c
@@ -356,7 +356,7 @@ fqueue_insertent(struct entry *entry)
}
/*
- * If the firt-level aggregation object alredy exist,
+ * If the first-level aggregation object already exist,
* just aggregate the samples and, if needed, resort
* it.
*/
OpenPOWER on IntegriCloud