git: c9213e4bb924 - main - restore(8): Fix typo in restore.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Feb 2024 07:24:10 UTC
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/src/commit/?id=c9213e4bb924cf3e664e8b624c1affc137114ebf
commit c9213e4bb924cf3e664e8b624c1affc137114ebf
Author: Yu-Sheng Ma <s110062131@m110.nthu.edu.tw>
AuthorDate: 2024-01-05 08:42:50 +0000
Commit: Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2024-02-13 07:07:35 +0000
restore(8): Fix typo in restore.h
`operation` was spelled wrongly on line 60.
`dumped` was spelled wrongly on line 74.
Event: Advanced UNIX Programming Course (Fall'23) at NTHU.
Pull Request: https://github.com/freebsd/freebsd-src/pull/998
---
sbin/restore/restore.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sbin/restore/restore.h b/sbin/restore/restore.h
index e54555f39dd8..407816993196 100644
--- a/sbin/restore/restore.h
+++ b/sbin/restore/restore.h
@@ -57,7 +57,7 @@ extern long volno; /* current volume being read */
extern long ntrec; /* number of TP_BSIZE records per tape block */
extern time_t dumptime; /* time that this dump begins */
extern time_t dumpdate; /* time that this dump was made */
-extern char command; /* opration being performed */
+extern char command; /* operation being performed */
extern FILE *terminal; /* file descriptor for the terminal input */
extern int Bcvt; /* need byte swapping on inodes and dirs */
extern int oldinofmt; /* reading tape with FreeBSD 1 format inodes */
@@ -71,7 +71,7 @@ struct entry {
char e_type; /* type of this entry, see below */
short e_flags; /* status flags, see below */
ino_t e_ino; /* inode number in previous file sys */
- long e_index; /* unique index (for dumpped table) */
+ long e_index; /* unique index (for dumped table) */
struct entry *e_parent; /* pointer to parent directory (..) */
struct entry *e_sibling; /* next element in this directory (.) */
struct entry *e_links; /* hard links to this inode */