summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-02-23 08:17:19 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-02-23 08:48:22 -0500
commit953d28cc21d25dc61f886d61d628b577aed4e042 (patch)
treef485444ae6fe3eb2bc1c493ed0fcb0d79dead789 /src
parent1328bd9c3dc0a973b415e509b1fe3a4698d8b9cd (diff)
Fix two typos
Diffstat (limited to 'src')
-rw-r--r--src/basic/hostname-util.c5
-rw-r--r--src/machine/machinectl.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/basic/hostname-util.c b/src/basic/hostname-util.c
index f900c509a3..5ed98eeb6a 100644
--- a/src/basic/hostname-util.c
+++ b/src/basic/hostname-util.c
@@ -48,8 +48,9 @@ bool hostname_is_set(void) {
char* gethostname_malloc(void) {
struct utsname u;
- /* This call tries to return something useful, either the actual hostname or it makes something up. The only
- * reason it might mail is OOM. It might even return "localhost" if that's set. */
+ /* This call tries to return something useful, either the actual hostname
+ * or it makes something up. The only reason it might fail is OOM.
+ * It might even return "localhost" if that's set. */
assert_se(uname(&u) >= 0);
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c
index 4853139321..4bb712ca5a 100644
--- a/src/machine/machinectl.c
+++ b/src/machine/machinectl.c
@@ -1763,7 +1763,7 @@ static int transfer_image_common(sd_bus *bus, sd_bus_message *m) {
r = sd_bus_call(bus, m, 0, &error, &reply);
if (r < 0) {
- log_error("Failed transfer image: %s", bus_error_message(&error, -r));
+ log_error("Failed to transfer image: %s", bus_error_message(&error, -r));
return r;
}