Commit Diff


commit - a17745d6d7c37bebbd5e0cb651579a727389a87f
commit + 0701afedee21b33e22f663ca265a7ca0f4c43974
blob - 2f0534a58de25bd0bfd4f285d9fc308e5ee78350
blob + e46e4823b31792a83f198a540e6ef15e065888b0
--- src/ngircd/resolve.c
+++ src/ngircd/resolve.c
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: resolve.c,v 1.22 2006/02/08 15:20:21 fw Exp $";
+static char UNUSED id[] = "$Id: resolve.c,v 1.23 2006/02/08 15:24:10 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -83,7 +83,6 @@ Resolve_Addr( RES_STAT *s, struct sockaddr_in *Addr, i
 	/* Resolve IP (asynchronous!). */
 	int pid, pipefd[2];
 	assert(s != NULL);
-	s->success = false;
 
 	pid = Resolver_fork(pipefd);
 	if (pid > 0) {
@@ -109,7 +108,6 @@ Resolve_Name( RES_STAT *s, const char *Host, void (*cb
 	/* Resolve hostname (asynchronous!). */
 	int pid, pipefd[2];
 	assert(s != NULL);
-	s->success = false;
 
 	pid = Resolver_fork(pipefd);
 	if (pid > 0) {
@@ -136,7 +134,6 @@ Resolve_Init(RES_STAT *s)
 	assert(s != NULL);
 	s->resolver_fd = -1;
 	s->pid = 0;
-	/* s->success must not be changed -- it will be set by other Resolve_*() functions */
 }
 
 
@@ -356,7 +353,6 @@ Resolve_Read( RES_STAT *s, void* readbuf, size_t bufle
 		return 0;
 	}
 
-	s->success = true;
 	return bytes_read;
 }
 /* -eof- */
blob - 030356886c6f28d2c8280d251343ea2fb3a3e055
blob + 47153bbdb855c47b6f8741604ce1ef6283822af4
--- src/ngircd/resolve.h
+++ src/ngircd/resolve.h
@@ -8,7 +8,7 @@
  * (at your option) any later version.
  * Please read the file COPYING, README and AUTHORS for more information.
  *
- * $Id: resolve.h,v 1.11 2005/09/12 19:10:21 fw Exp $
+ * $Id: resolve.h,v 1.12 2006/02/08 15:24:10 fw Exp $
  *
  * Asynchronous resolver (header)
  */
@@ -24,13 +24,11 @@
 typedef struct _Res_Stat {
 	int pid;			/* PID of resolver process */
 	int resolver_fd;		/* pipe fd for lookup result. */
-	bool success;			/* resolver returned data */
 } RES_STAT;
 
 
 #define Resolve_Getfd(x)		((x)->resolver_fd)
 #define Resolve_INPROGRESS(x)		((x)->resolver_fd >= 0)
-#define Resolve_SUCCESS(x)		((x)->resolver_fd < 0 && (x)->success)
 
 GLOBAL bool Resolve_Addr PARAMS(( RES_STAT *s, struct sockaddr_in *Addr, int identsock, void (*cbfunc)(int, short)));
 GLOBAL bool Resolve_Name PARAMS(( RES_STAT *s, const char *Host, void (*cbfunc)(int, short) ));