/[cvs]/ccvs/src/subr.c
ViewVC logotype

Diff of /ccvs/src/subr.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.145 by dprice, Sun Sep 4 23:00:04 2005 UTC revision 1.146 by dprice, Tue Sep 6 04:55:09 2005 UTC
# Line 16  Line 16 
16  #include "cvs.h"  #include "cvs.h"
17    
18  #include "canonicalize.h"  #include "canonicalize.h"
19    #include "canon-host.h"
20  #include "getline.h"  #include "getline.h"
21  #include "vasprintf.h"  #include "vasprintf.h"
22  #include "vasnprintf.h"  #include "vasnprintf.h"
# Line 1979  xcanonicalize_file_name (const char *pat Line 1980  xcanonicalize_file_name (const char *pat
1980    
1981    
1982    
 /* From GNULIB's canon-host module.  */  
 extern char *canon_host (const char *host);  
   
1983  /* Declared in main.c.  */  /* Declared in main.c.  */
1984  extern char *server_hostname;  extern char *server_hostname;
1985    
# Line 2010  isThisHost (const char *otherhost) Line 2008  isThisHost (const char *otherhost)
2008    
2009      fqdno = canon_host (otherhost);      fqdno = canon_host (otherhost);
2010      if (!fqdno)      if (!fqdno)
2011          error (1, 0, "Name lookup failed for `%s'", otherhost);          error (1, 0, "Name lookup failed for `%s': %s",
2012                   otherhost, ch_strerror ());
2013      fqdns = canon_host (server_hostname);      fqdns = canon_host (server_hostname);
2014      if (!fqdns)      if (!fqdns)
2015          error (1, 0, "Name lookup failed for `%s'", server_hostname);          error (1, 0, "Name lookup failed for `%s': %s",
2016                   server_hostname, ch_strerror ());
2017    
2018      retval = !strcasecmp (fqdns, fqdno);      retval = !strcasecmp (fqdns, fqdno);
2019    

Legend:
Removed from v.1.145  
changed lines
  Added in v.1.146

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26