From e272915e1ffd6978ef3555ce4ae1798a9fbcee56 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Fri, 18 Feb 2000 21:34:17 +0000 Subject: Some updates for the day, -Erik --- networking/nslookup.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'networking') diff --git a/networking/nslookup.c b/networking/nslookup.c index ffa7201..e2d8cea 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c @@ -58,9 +58,9 @@ static void server_fprint(FILE * dst) /* only works for IPv4 */ static int addr_fprint(char *addr, FILE * dst) { - uint8_t split[4]; - uint32_t ip; - uint32_t *x = (uint32_t *) addr; + u_int8_t split[4]; + u_int32_t ip; + u_int32_t *x = (u_int32_t *) addr; ip = ntohl(*x); split[0] = (ip & 0xff000000) >> 24; @@ -73,12 +73,12 @@ static int addr_fprint(char *addr, FILE * dst) } /* changes a c-string matching the perl regex \d+\.\d+\.\d+\.\d+ - * into a uint32_t + * into a u_int32_t */ -static uint32_t str_to_addr(const char *addr) +static u_int32_t str_to_addr(const char *addr) { - uint32_t split[4]; - uint32_t ip; + u_int32_t split[4]; + u_int32_t ip; sscanf(addr, "%d.%d.%d.%d", &split[0], &split[1], &split[2], &split[3]); @@ -174,4 +174,4 @@ int nslookup_main(int argc, char **argv) return 0; } -/* $Id: nslookup.c,v 1.4 2000/02/08 19:58:47 erik Exp $ */ +/* $Id: nslookup.c,v 1.5 2000/02/18 21:34:17 erik Exp $ */ -- cgit v1.1