Merge pull request #2717 from keszybz/networkctl-prettification

Networkctl prettification
This commit is contained in:
Lennart Poettering
2016-02-23 16:54:52 +01:00
6 changed files with 51 additions and 23 deletions
+3 -2
View File
@@ -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);