aboutsummaryrefslogtreecommitdiff
path: root/pa6_threaded_resolver/util.h
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2024-10-27 16:50:20 -0600
committerJack Sangdahl <[email protected]>2024-10-27 16:50:20 -0600
commit571f79fee9bbe89f544f5453d36243e59c7dcb8e (patch)
tree566f35075593b6d854d199fc5f4702588a9765ba /pa6_threaded_resolver/util.h
parent6e6f4151b7f709fbaf62e40479c700a81436512f (diff)
downloadcsci3753-571f79fee9bbe89f544f5453d36243e59c7dcb8e.tar.gz
csci3753-571f79fee9bbe89f544f5453d36243e59c7dcb8e.zip
pa6: improvements
Diffstat (limited to 'pa6_threaded_resolver/util.h')
-rw-r--r--pa6_threaded_resolver/util.h14
1 files changed, 6 insertions, 8 deletions
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 <stdlib.h>
+#include <errno.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
-#include <errno.h>
#include <arpa/inet.h>
-#include <sys/types.h>
-#include <sys/socket.h>
#include <netdb.h>
+#include <sys/socket.h>
+#include <sys/types.h>
#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