aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h
index b4baa70..8e7adc9 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -3,6 +3,7 @@
#include <stdlib.h>
#include <sys/types.h>
+#include <netdb.h>
#ifndef SIZEOF
#define SIZEOF(arr) (sizeof(arr)/sizeof(arr[0]))
@@ -63,7 +64,10 @@ int update_setgroups_self(int allow);
void escape_ascii_string(const char ascii[], size_t siz,
char **dest, size_t *newsiz);
-size_t parse_hostport(char *str, char *result[2],
+size_t parse_hostport(const char *str, const char *result[2],
size_t siz[2]);
+size_t parse_hostport_str(const char *str, char hbuf[NI_MAXHOST],
+ char sbuf[NI_MAXSERV]);
+
#endif