]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Fix the typos
authorYang Hau <yuanyanghau@gmail.com>
Fri, 2 Aug 2024 13:05:35 +0000 (21:05 +0800)
committerYang Hau <yuanyanghau@gmail.com>
Fri, 2 Aug 2024 13:05:35 +0000 (21:05 +0800)
libsmartcols/src/filter.c
libsmartcols/src/grouping.c
login-utils/sulogin.c
lsfd-cmd/lsfd.c
misc-utils/findmnt-verify.c

index ed05ad4b3c32ddcdebdb028b5d0c861a6810b0f5..80980bc463b3f4240559028e3398d5d22f7b1bf6 100644 (file)
@@ -417,7 +417,7 @@ int scols_counter_set_name(struct libscols_counter *ct, const char *name)
  * @name: holder (column) name
  *
  * Assigns a counter to the column. The name is used in the same way as names
- * in the filter expression. This is usable for counter that calcuate with data
+ * in the filter expression. This is usable for counter that calculate with data
  * from table cells (e.g. max, sum, etc.)
  *
  * Returns: 0, a negative number in case of an error.
index 0f6fe78a400369b14b7e76d5b67ead00912f9726..ed9735fbe63325198eddabe8ed128447d9aa5203 100644 (file)
@@ -11,7 +11,7 @@
  * Lines groups manipulation API. The grouping API can be used to create M:N
  * relations between lines and on tree-like output it prints extra chart to
  * visualize these relations. The group has unlimited number of members and
- * group childs. See libsmartcols/sample/grouping* for more details.
+ * group children. See libsmartcols/sample/grouping* for more details.
  */
 
 /* Private API */
index 501961f5fb249a73b5710129f924ba8870c38ae6..33ed759f867d9a3632164bf5934e5980f3cc4389 100644 (file)
@@ -78,7 +78,7 @@ static struct sigaction saved_sigquit;
 static struct sigaction saved_sighup;
 static struct sigaction saved_sigchld;
 
-static volatile sig_atomic_t alarm_rised;
+static volatile sig_atomic_t alarm_raised;
 static volatile sig_atomic_t sigchild;
 
 #define SULOGIN_PASSWORD_BUFSIZ        128
@@ -419,7 +419,7 @@ static void tcfinal(struct console *con)
 static void alrm_handler(int sig __attribute__((unused)))
 {
        /* Timeout expired */
-       alarm_rised = 1;
+       alarm_raised = 1;
 }
 
 static void chld_handler(int sig __attribute__((unused)))
@@ -781,7 +781,7 @@ static char *getpasswd(struct console *con)
 
                if (read(fd, &c, 1) < 1) {
                        if (errno == EINTR || errno == EAGAIN) {
-                               if (alarm_rised) {
+                               if (alarm_raised) {
                                        ret = NULL;
                                        goto quit;
                                }
@@ -1213,7 +1213,7 @@ int main(int argc, char **argv)
                                }
                                fprintf(stderr, _("Login incorrect\n\n"));
                        }
-                       if (alarm_rised) {
+                       if (alarm_raised) {
                                tcfinal(con);
                                warnx(_("Timed out\n\n"));
                        }
index 017298e09789f2bb031b7864a0721009c7fa5ba8..034cd3ac7222f6e0f5435ad9f9c1adb0b577d576 100644 (file)
@@ -1822,7 +1822,7 @@ static void mark_select_fds_as_multiplexed(char *buf,
                return;
 
        for (int i = 0; i < 3; i++) {
-               /* If the remote address for the fd_set is 0x0, no set is tehre. */
+               /* If the remote address for the fd_set is 0x0, no set is there. */
                remote[i].iov_len = local[i].iov_len = fds[i]? sizeof(local_set[i]): 0;
                expected_n += (ssize_t)local[i].iov_len;
                local[i].iov_base = local_set + i;
index 4fa5d0839bcab0c36f79434bf56aa0983f483438..845f31fdab11d4c0f0424b2dcee1a474e131f14e 100644 (file)
@@ -449,12 +449,12 @@ static int verify_fstype(struct verify_context *vfy)
        realtype = mnt_get_fstype(src, &ambi, cache);
 
        if (!realtype) {
-               const char *reson = errno ? strerror(errno) : _("reason unknown");
+               const char *raeson = errno ? strerror(errno) : _("reason unknown");
 
                if (isauto)
-                       verify_err(vfy, _("cannot detect on-disk filesystem type (%s)"), reson);
+                       verify_err(vfy, _("cannot detect on-disk filesystem type (%s)"), raeson);
                else
-                       verify_warn(vfy, _("cannot detect on-disk filesystem type (%s)"), reson);
+                       verify_warn(vfy, _("cannot detect on-disk filesystem type (%s)"), raeson);
                goto done;
        }