summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/TODO2
-rw-r--r--libfdisk/src/context.c4
-rw-r--r--libmount/src/context_mount.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/TODO b/Documentation/TODO
index 9596ccecd..fe67f12a9 100644
--- a/Documentation/TODO
+++ b/Documentation/TODO
@@ -11,7 +11,7 @@ hwlock
bash completion
---------------
- Optional argument handling requires user to press backspace to get
- argument completetion.
+ argument completion.
- Comma separated value, e.g., --output 'value1,value2', are not
completed for users.
diff --git a/libfdisk/src/context.c b/libfdisk/src/context.c
index c9613926c..7569e5b52 100644
--- a/libfdisk/src/context.c
+++ b/libfdisk/src/context.c
@@ -146,7 +146,7 @@ static void reset_context(struct fdisk_context *cxt)
* the device with read-write mode and will fallback to read-only if
* unsuccessful.
*
- * Returns: 0 on sucess, < 0 on error.
+ * Returns: 0 on success, < 0 on error.
*/
int fdisk_context_assign_device(struct fdisk_context *cxt,
const char *fname, int readonly)
@@ -224,7 +224,7 @@ void fdisk_free_context(struct fdisk_context *cxt)
* @ask_cb: callback
* @data: callback data
*
- * Returns: 0 on sucess, < 0 on error.
+ * Returns: 0 on success, < 0 on error.
*/
int fdisk_context_set_ask(struct fdisk_context *cxt,
int (*ask_cb)(struct fdisk_context *, struct fdisk_ask *, void *),
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index 3b280ab9b..d28736126 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -24,7 +24,7 @@
/*
* Kernel supports only one MS_PROPAGATION flag change by one mount(2) syscall,
- * to bypass this restriction we call mount(2) per flag. It's realy not a perfect
+ * to bypass this restriction we call mount(2) per flag. It's really not a perfect
* solution, but it's the same like to execute multiple mount(8) commands.
*
* We use cxt->addmounts (additional mounts) list to keep order of the requested
@@ -865,7 +865,7 @@ int mnt_context_do_mount(struct libmnt_context *cxt)
type = mnt_fs_get_fstype(cxt->fs);
if (type) {
if (strchr(type, ','))
- /* this only happen if fstab countains list of filesystems */
+ /* this only happens if fstab contains list of filesystems */
res = do_mount_by_pattern(cxt, type);
else
res = do_mount(cxt, NULL);