cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] Changes to ccvs/src/subr.c


From: Derek Robert Price
Subject: [Cvs-cvs] Changes to ccvs/src/subr.c
Date: Tue, 06 Sep 2005 00:55:16 -0400

Index: ccvs/src/subr.c
diff -u ccvs/src/subr.c:1.145 ccvs/src/subr.c:1.146
--- ccvs/src/subr.c:1.145       Sun Sep  4 23:00:04 2005
+++ ccvs/src/subr.c     Tue Sep  6 04:55:09 2005
@@ -16,6 +16,7 @@
 #include "cvs.h"
 
 #include "canonicalize.h"
+#include "canon-host.h"
 #include "getline.h"
 #include "vasprintf.h"
 #include "vasnprintf.h"
@@ -1979,9 +1980,6 @@
 
 
 
-/* From GNULIB's canon-host module.  */
-extern char *canon_host (const char *host);
-
 /* Declared in main.c.  */
 extern char *server_hostname;
 
@@ -2010,10 +2008,12 @@
 
     fqdno = canon_host (otherhost);
     if (!fqdno)
-       error (1, 0, "Name lookup failed for `%s'", otherhost);
+       error (1, 0, "Name lookup failed for `%s': %s",
+              otherhost, ch_strerror ());
     fqdns = canon_host (server_hostname);
     if (!fqdns)
-       error (1, 0, "Name lookup failed for `%s'", server_hostname);
+       error (1, 0, "Name lookup failed for `%s': %s",
+              server_hostname, ch_strerror ());
 
     retval = !strcasecmp (fqdns, fqdno);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]