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" |
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 |
|
|
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 |
|
|