From b4d16e90e02d270d685aecf5cf2499d34483ab92 Mon Sep 17 00:00:00 2001 From: fredrik Date: Tue, 29 May 2007 17:08:57 +0000 Subject: [PATCH] Replace ENONET with ENOENT for portability, but yuck!! git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@1053 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/net.c b/daemon/net.c index 535f313..ea80a6a 100644 --- a/daemon/net.c +++ b/daemon/net.c @@ -1083,7 +1083,7 @@ static void resolvecb(pid_t pid, int status, struct resolvedata *data) { if((ret = read(data->fd, buf, sizeof(buf))) != 4) { - errno = ENONET; + errno = ENOENT; data->callback(NULL, 0, data->data); } else { ipv4 = (struct sockaddr_in *)&data->addr; @@ -1091,7 +1091,7 @@ static void resolvecb(pid_t pid, int status, struct resolvedata *data) data->callback((struct sockaddr *)ipv4, sizeof(*ipv4), data->data); } } else { - errno = ENONET; + errno = ENOENT; data->callback(NULL, 0, data->data); } close(data->fd); -- 2.11.0