Module Name: src Committed By: wiz Date: Wed Apr 6 13:42:40 UTC 2022
Modified Files: src/sbin/fsck_udf: main.c Log Message: fsck_udf: match usage to man page; fix typos To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sbin/fsck_udf/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/fsck_udf/main.c diff -u src/sbin/fsck_udf/main.c:1.1 src/sbin/fsck_udf/main.c:1.2 --- src/sbin/fsck_udf/main.c:1.1 Wed Apr 6 13:35:50 2022 +++ src/sbin/fsck_udf/main.c Wed Apr 6 13:42:39 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.1 2022/04/06 13:35:50 reinoud Exp $ */ +/* $NetBSD: main.c,v 1.2 2022/04/06 13:42:39 wiz Exp $ */ /* * Copyright (c) 2022 Reinoud Zandijk @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: main.c,v 1.1 2022/04/06 13:35:50 reinoud Exp $"); +__RCSID("$NetBSD: main.c,v 1.2 2022/04/06 13:42:39 wiz Exp $"); #endif /* not lint */ #include <stdio.h> @@ -1040,7 +1040,7 @@ udf_process_file(union dscrptr *dscrptr, case UDF_EXT_REDIRECT : if (piece_len != context.sector_size) { /* should this be an error? */ - pwarn("Got extention redirect with wrong size %d\n", + pwarn("Got extension redirect with wrong size %d\n", piece_len); error = EINVAL; break; @@ -3501,7 +3501,7 @@ udf_process_node_pass1(struct udf_fsck_n node->fsck_flags |= FSCK_NODE_FLAG_PAR_NOT_FOUND; rest_len = node->found.inf_len; - /* walk trough all our FIDs in the directory stream */ + /* walk through all our FIDs in the directory stream */ bpos = node->directory; fpos = 0; while (rest_len > 0) { @@ -4321,7 +4321,7 @@ checkfilesys(char *given_dev) static void usage(void) { - (void)fprintf(stderr, "Usage: %s [-psSynfH] filesystem ... \n", + (void)fprintf(stderr, "Usage: %s [-fHnpSsy] file-system ... \n", getprogname()); exit(FSCK_EXIT_USAGE); }