[PATCH 2/2] Adds some resolv functionality (XCC)
[akaros.git] / user / bsd / gethostbyname.c
index 17ce051..273bd45 100644 (file)
@@ -53,7 +53,6 @@ gethostbyname(const char *name)
        /* connect to server */
        fd = open("/net/cs", O_RDWR);
        if(fd < 0){
-               _syserrno();
                h_errno = NO_RECOVERY;
                return 0;
        }
@@ -73,7 +72,6 @@ gethostbyname(const char *name)
 
        /* query the server */
        if(write(fd, buf, strlen(buf)) < 0){
-               _syserrno();
                h_errno = TRY_AGAIN;
                return 0;
        }