Typo fixes in comments and variable names.

This commit is contained in:
proski 2007-12-30 08:52:06 +00:00
parent c3c20931a9
commit cc85c3c340
39 changed files with 76 additions and 76 deletions

View file

@ -21,7 +21,7 @@
#define EXT2_MAGIC 0xEF53
/* Amount of indirect blocks in an inode. */
#define INDIRECT_BLOCKS 12
/* Maximum lenght of a pathname. */
/* Maximum length of a pathname. */
#define EXT2_PATH_MAX 4096
/* Maximum nesting of symlinks, used to prevent a loop. */
#define EXT2_MAX_SYMLINKCNT 8
@ -146,7 +146,7 @@ struct grub_ext2_inode
grub_uint32_t dir_blocks[INDIRECT_BLOCKS];
grub_uint32_t indir_block;
grub_uint32_t double_indir_block;
grub_uint32_t tripple_indir_block;
grub_uint32_t triple_indir_block;
} blocks;
char symlink[60];
};
@ -251,11 +251,11 @@ grub_ext2_read_block (grub_fshelp_node_t node, int fileblock)
blknr = grub_le_to_cpu32 (indir[rblock % perblock]);
}
/* Tripple indirect. */
/* triple indirect. */
else
{
grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"ext2fs doesn't support tripple indirect blocks");
"ext2fs doesn't support triple indirect blocks");
blknr = -1;
}

View file

@ -43,7 +43,7 @@ enum
GRUB_HFS_FILETYPE_FILE = 2
};
/* A node desciptor. This is the header of every node. */
/* A node descriptor. This is the header of every node. */
struct grub_hfs_node
{
grub_uint32_t next;

View file

@ -303,7 +303,7 @@ grub_hfsplus_read_block (grub_fshelp_node_t node, int fileblock)
blk = grub_hfsplus_find_block (extents, &blksleft);
/* The previous iteration of this loop allocated memory. The
code above used this memory, it can be free'ed now. */
code above used this memory, it can be freed now. */
grub_free (nnode);
nnode = 0;
@ -505,7 +505,7 @@ grub_hfsplus_cmp_catkey (struct grub_hfsplus_key *keya,
if (diff)
return diff;
/* Change the filename in keya so the endianess is correct. */
/* Change the filename in keya so the endianness is correct. */
for (i = 0; i < grub_be_to_cpu16 (catkey_a->namelen); i++)
catkey_a->name[i] = grub_be_to_cpu16 (catkey_a->name[i]);
@ -521,7 +521,7 @@ grub_hfsplus_cmp_catkey (struct grub_hfsplus_key *keya,
grub_free (filename);
/* The endianess was changed to host format, change it back to
/* The endianness was changed to host format, change it back to
whatever it was. */
for (i = 0; i < grub_be_to_cpu16 (catkey_a->namelen); i++)
catkey_a->name[i] = grub_cpu_to_be16 (catkey_a->name[i]);
@ -606,7 +606,7 @@ grub_hfsplus_btree_iterate_node (struct grub_hfsplus_btree *btree,
/* Lookup the node described by KEY in the B+ Tree BTREE. Compare
keys using the function COMPARE_KEYS. When a match is found,
return the node in MATCHNODE and a pointer to the data in this node
in KEYOFFSET. MATCHNODE should be free'ed by the caller. */
in KEYOFFSET. MATCHNODE should be freed by the caller. */
static grub_err_t
grub_hfsplus_btree_search (struct grub_hfsplus_btree *btree,
struct grub_hfsplus_key_internal *key,
@ -661,7 +661,7 @@ grub_hfsplus_btree_search (struct grub_hfsplus_btree *btree,
{
grub_uint32_t *pointer;
/* The place where the key could've been found didn't
/* The place where the key could have been found didn't
contain the key. This means that the previous match
is the one that should be followed. */
if (compare_keys (currkey, key) > 0)
@ -943,7 +943,7 @@ grub_hfsplus_label (grub_device_t device __attribute__((unused))
/* XXX: It's not documented how to read a label. */
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"reading the label of a HFS+ "
"partiton is not implemented");
"partition is not implemented");
}

View file

@ -283,13 +283,13 @@ grub_iso9660_mount (grub_disk_t disk)
/* Test if the SUSP protocol is used on this filesystem. */
if (grub_strncmp ((char *) entry->sig, "SP", 2) == 0)
{
/* The 2nd data byte stored how many bytes are skipped everytime
/* The 2nd data byte stored how many bytes are skipped every time
to get to the SUA (System Usage Area). */
data->susp_skip = entry->data[2];
entry = (struct grub_iso9660_susp_entry *) ((char *) entry + entry->len);
/* Iterate over the entries in the SUA area to detect
entensions. */
extensions. */
if (grub_iso9660_susp_iterate (data,
(grub_le_to_cpu32 (data->voldesc.rootdir.first_sector)
<< GRUB_ISO9660_LOG2_BLKSZ),

View file

@ -478,7 +478,7 @@ grub_jfs_getent (struct grub_jfs_diropen *diro)
{
unsigned int next;
/* If the inode contains the entrie tree or if this was the last
/* If the inode contains the entry tree or if this was the last
node, there is nothing to read. */
if ((diro->inode->file.tree.flags & GRUB_JFS_TREE_LEAF)
|| !grub_le_to_cpu64 (diro->dirpage->header.nextb))

View file

@ -231,7 +231,7 @@ grub_ufs_get_file_block (struct grub_ufs_data *data, unsigned int blk)
grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"ufs does not support tripple indirect blocks");
"ufs does not support triple indirect blocks");
return 0;
}