From 571f79fee9bbe89f544f5453d36243e59c7dcb8e Mon Sep 17 00:00:00 2001 From: Jack Sangdahl Date: Sun, 27 Oct 2024 16:50:20 -0600 Subject: pa6: improvements --- pa6_threaded_resolver/util.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'pa6_threaded_resolver/util.h') diff --git a/pa6_threaded_resolver/util.h b/pa6_threaded_resolver/util.h index d0f7559..16433b7 100644 --- a/pa6_threaded_resolver/util.h +++ b/pa6_threaded_resolver/util.h @@ -9,7 +9,7 @@ * Description: * This file contains declarations of utility functions for * Programming Assignment 3. - * + * */ #ifndef UTIL_H @@ -18,15 +18,15 @@ /* Define the following to enable debug statments */ // #define UTIL_DEBUG -#include +#include #include +#include #include -#include #include -#include -#include #include +#include +#include #define UTIL_FAILURE -1 #define UTIL_SUCCESS 0 @@ -35,8 +35,6 @@ * for hostname. IP address returned as string * firstIPstr of size maxsize */ -int dnslookup(const char* hostname, - char* firstIPstr, - int maxSize); +int dnslookup(const char *hostname, char *firstIPstr, int maxSize); #endif -- cgit v1.2.3