summaryrefslogtreecommitdiffstats
path: root/contrib/traceroute/as.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/traceroute/as.c')
-rw-r--r--contrib/traceroute/as.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/traceroute/as.c b/contrib/traceroute/as.c
index ed2c440..fd2f961 100644
--- a/contrib/traceroute/as.c
+++ b/contrib/traceroute/as.c
@@ -56,13 +56,14 @@ struct aslookup {
};
void *
-as_setup(char *server)
+as_setup(const char *server)
{
struct aslookup *asn;
struct addrinfo hints, *res0, *res;
FILE *f;
int s, error;
+ s = -1;
if (server == NULL)
server = getenv("RA_SERVER");
if (server == NULL)
OpenPOWER on IntegriCloud