From: Samanta Navarro Date: Wed, 4 Nov 2020 11:31:00 +0000 (+0000) Subject: misc: fix typos X-Git-Tag: v2.37-rc1~398 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd0f347f86896965696932b2943ef15c4aab3f65;p=thirdparty%2Futil-linux.git misc: fix typos Signed-off-by: Samanta Navarro --- diff --git a/lib/randutils.c b/lib/randutils.c index bf81933389..b473577af5 100644 --- a/lib/randutils.c +++ b/lib/randutils.c @@ -36,7 +36,7 @@ #endif #if !defined(HAVE_GETRANDOM) && defined(SYS_getrandom) -/* libc without function, but we have syscal */ +/* libc without function, but we have syscall */ #define GRND_NONBLOCK 0x01 #define GRND_RANDOM 0x02 static int getrandom(void *buf, size_t buflen, unsigned int flags) diff --git a/libblkid/src/cache.c b/libblkid/src/cache.c index c199b919e4..a7f2c95ffc 100644 --- a/libblkid/src/cache.c +++ b/libblkid/src/cache.c @@ -86,7 +86,7 @@ char *blkid_get_cache_filename(struct blkid_config *conf) * @cache: pointer to return cache handler * @filename: path to the cache file or NULL for the default path * - * Allocates and initialize library cache handler. + * Allocates and initializes library cache handler. * * Returns: 0 on success or number less than zero in case of error. */ @@ -183,7 +183,7 @@ void blkid_gc_cache(blkid_cache cache) list_for_each_safe(p, pnext, &cache->bic_devs) { blkid_dev dev = list_entry(p, struct blkid_struct_dev, bid_devs); if (stat(dev->bid_name, &st) < 0) { - DBG(CACHE, ul_debugobj(cache, "freeing non-exiting %s", dev->bid_name)); + DBG(CACHE, ul_debugobj(cache, "freeing non-existing %s", dev->bid_name)); blkid_free_dev(dev); cache->bic_flags |= BLKID_BIC_FL_CHANGED; } else { diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c index 8f5f59da3b..c1efcff28e 100644 --- a/libblkid/src/probe.c +++ b/libblkid/src/probe.c @@ -577,7 +577,7 @@ static struct blkid_bufinfo *read_buffer(blkid_probe pr, uint64_t real_off, uint } /* - * Search in buffers we already in memory + * Search in buffers we already have in memory */ static struct blkid_bufinfo *get_cached_buffer(blkid_probe pr, uint64_t off, uint64_t len) { diff --git a/libmount/src/fs.c b/libmount/src/fs.c index 52f937acc3..d669b61672 100644 --- a/libmount/src/fs.c +++ b/libmount/src/fs.c @@ -153,8 +153,8 @@ static inline int update_str(char **dest, const char *src) return 0; } -/* This function do NOT overwrite (replace) the string in @new, the string in - * the @new has to be NULL otherwise this is no-op */ +/* This function does NOT overwrite (replace) the string in @new, the string in + * @new has to be NULL otherwise this is no-op. */ static inline int cpy_str_at_offset(void *new, const void *old, size_t offset) { char **o = (char **) ((char *) old + offset); diff --git a/misc-utils/uuidgen.1 b/misc-utils/uuidgen.1 index 0189587a31..2c660e6e48 100644 --- a/misc-utils/uuidgen.1 +++ b/misc-utils/uuidgen.1 @@ -57,7 +57,7 @@ See the RFC for more information. .TP .BR \-r , " \-\-random" Generate a random-based UUID. This method creates a UUID consisting mostly -of random bits. It requires that the operating system have a high +of random bits. It requires that the operating system has a high quality random number generator, such as .IR /dev/random . .TP