aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-04-17 16:13:32 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-04-17 16:13:32 +0200
commit10ad622dc2a9fb6563fab13719ead8baf15ff9e4 (patch)
tree82312d6f38a517dcc7c0004f78d76c667f5a674b /util-linux
parentd85352b4ff51694cb35b429e4cef53302c9e7076 (diff)
downloadbusybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.tar.gz
busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.tar.bz2
busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.zip
Spelling fixes in comments, documentation, tests and examples
By klemens <ka7@github.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/cal.c2
-rw-r--r--util-linux/hwclock.c2
-rw-r--r--util-linux/renice.c2
-rw-r--r--util-linux/switch_root.c2
-rw-r--r--util-linux/volume_id/udf.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/util-linux/cal.c b/util-linux/cal.c
index af02608f0..8196619b0 100644
--- a/util-linux/cal.c
+++ b/util-linux/cal.c
@@ -35,7 +35,7 @@
35#include "libbb.h" 35#include "libbb.h"
36#include "unicode.h" 36#include "unicode.h"
37 37
38/* We often use "unsigned" intead of "int", it's easier to div on most CPUs */ 38/* We often use "unsigned" instead of "int", it's easier to div on most CPUs */
39 39
40#define THURSDAY 4 /* for reformation */ 40#define THURSDAY 4 /* for reformation */
41#define SATURDAY 6 /* 1 Jan 1 was a Saturday */ 41#define SATURDAY 6 /* 1 Jan 1 was a Saturday */
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index d65011a71..8cb908cb3 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -167,7 +167,7 @@ static void from_sys_clock(const char **pp_rtcname, int utc)
167 * On x86, even though code does set hw clock within <1ms of exact 167 * On x86, even though code does set hw clock within <1ms of exact
168 * whole seconds, apparently hw clock (at least on some machines) 168 * whole seconds, apparently hw clock (at least on some machines)
169 * doesn't reset internal fractional seconds to 0, 169 * doesn't reset internal fractional seconds to 0,
170 * making all this a pointless excercise. 170 * making all this a pointless exercise.
171 */ 171 */
172 /* If we see that we are N usec away from whole second, 172 /* If we see that we are N usec away from whole second,
173 * we'll sleep for N-ADJ usecs. ADJ corrects for the fact 173 * we'll sleep for N-ADJ usecs. ADJ corrects for the fact
diff --git a/util-linux/renice.c b/util-linux/renice.c
index 64213c680..4da3394a8 100644
--- a/util-linux/renice.c
+++ b/util-linux/renice.c
@@ -141,7 +141,7 @@ int renice_main(int argc UNUSED_PARAM, char **argv)
141 retval = EXIT_FAILURE; 141 retval = EXIT_FAILURE;
142 } 142 }
143 143
144 /* No need to check for errors outputing to stderr since, if it 144 /* No need to check for errors outputting to stderr since, if it
145 * was used, the HAD_ERROR label was reached and retval was set. */ 145 * was used, the HAD_ERROR label was reached and retval was set. */
146 146
147 return retval; 147 return retval;
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index aaee35a3e..f18e8a5ce 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -183,7 +183,7 @@ So there's a step that needs to be sort of atomic but can't be as a shell
183script. (You can work around this with static linking or very carefully laid 183script. (You can work around this with static linking or very carefully laid
184out paths and sequencing, but it's brittle, ugly, and non-obvious.) 184out paths and sequencing, but it's brittle, ugly, and non-obvious.)
185 185
1862) The "find | rm" bit will acually delete everything because the mount points 1862) The "find | rm" bit will actually delete everything because the mount points
187still show up (even if their contents don't), and rm -rf will then happily zap 187still show up (even if their contents don't), and rm -rf will then happily zap
188that. So the first line is an oversimplification of what you need to do _not_ 188that. So the first line is an oversimplification of what you need to do _not_
189to descend into other filesystems and delete their contents. 189to descend into other filesystems and delete their contents.
diff --git a/util-linux/volume_id/udf.c b/util-linux/volume_id/udf.c
index 613c80c86..fa5dccee7 100644
--- a/util-linux/volume_id/udf.c
+++ b/util-linux/volume_id/udf.c
@@ -137,7 +137,7 @@ anchor:
137 if (type != 2) /* TAG_ID_AVDP */ 137 if (type != 2) /* TAG_ID_AVDP */
138 goto found; 138 goto found;
139 139
140 /* get desriptor list address and block count */ 140 /* get descriptor list address and block count */
141 count = le32_to_cpu(vd->type.anchor.length) / bs; 141 count = le32_to_cpu(vd->type.anchor.length) / bs;
142 loc = le32_to_cpu(vd->type.anchor.location); 142 loc = le32_to_cpu(vd->type.anchor.location);
143 dbg("0x%x descriptors starting at logical secor 0x%x", count, loc); 143 dbg("0x%x descriptors starting at logical secor 0x%x", count, loc);