summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorMike Frysinger2006-05-26 01:48:17 +0000
committerMike Frysinger2006-05-26 01:48:17 +0000
commitfa6c4844b2fef07def6b739c8f28ec50c2612208 (patch)
tree971b38f45cc2c30f693cc6cc650f4c280d11babd /util-linux
parent9c03cb920acdb19595e4a670cf4081b0631b7b52 (diff)
downloadbusybox-fa6c4844b2fef07def6b739c8f28ec50c2612208.zip
busybox-fa6c4844b2fef07def6b739c8f28ec50c2612208.tar.gz
fix spelling mistakes
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk.c12
-rw-r--r--util-linux/nfsmount.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 2042951..8ceeb48 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -5075,7 +5075,7 @@ static void
add_partition(int n, int sys)
{
char mesg[256]; /* 48 does not suffice in Japanese */
- int i, readed = 0;
+ int i, num_read = 0;
struct partition *p = ptes[n].part_table;
struct partition *q = ptes[ext_index].part_table;
long long llimit;
@@ -5124,12 +5124,12 @@ add_partition(int n, int sys)
}
if (start > limit)
break;
- if (start >= temp+units_per_sector && readed) {
+ if (start >= temp+units_per_sector && num_read) {
printf(_("Sector %llu is already allocated\n"), (unsigned long long)temp);
temp = start;
- readed = 0;
+ num_read = 0;
}
- if (!readed && start == temp) {
+ if (!num_read && start == temp) {
off_t saved_start;
saved_start = start;
@@ -5139,9 +5139,9 @@ add_partition(int n, int sys)
start = (start - 1) * units_per_sector;
if (start < saved_start) start = saved_start;
}
- readed = 1;
+ num_read = 1;
}
- } while (start != temp || !readed);
+ } while (start != temp || !num_read);
if (n > 4) { /* NOT for fifth partition */
struct pte *pe = &ptes[n];
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index 7b742cb..4ab415f 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -623,7 +623,7 @@ int nfsmount(const char *spec, const char *node, int *flags,
return retval;
}
- /* create mount deamon client */
+ /* create mount daemon client */
/* See if the nfs host = mount host. */
if (mounthost) {
if (mounthost[0] >= '0' && mounthost[0] <= '9') {
@@ -835,7 +835,7 @@ int nfsmount(const char *spec, const char *node, int *flags,
#endif
}
#ifdef NFS_MOUNT_DEBUG
- printf(_("using port %d for nfs deamon\n"), port);
+ printf(_("using port %d for nfs daemon\n"), port);
#endif
server_addr.sin_port = htons(port);
/*