[klibc] Fix gethostname()/getdomainname()

uname(2) returns (like all syscalls) 0 on success.

Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: maximilian attems <max@stro.at>
diff --git a/usr/klibc/getdomainname.c b/usr/klibc/getdomainname.c
index 61722ca..218ff0b 100644
--- a/usr/klibc/getdomainname.c
+++ b/usr/klibc/getdomainname.c
@@ -11,7 +11,7 @@
 {
 	struct utsname un;
 
-	if (!uname(&un))
+	if (uname(&un))
 		return -1;
 
 	if (len < strlen(un.domainname) + 1) {
diff --git a/usr/klibc/gethostname.c b/usr/klibc/gethostname.c
index 5326b5f..120edd9 100644
--- a/usr/klibc/gethostname.c
+++ b/usr/klibc/gethostname.c
@@ -11,7 +11,7 @@
 {
 	struct utsname un;
 
-	if (!uname(&un))
+	if (uname(&un))
 		return -1;
 
 	if (len < strlen(un.nodename) + 1) {