blob: 99dafdc806bc518307d3e7c1582984d9ef8ad093 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <util.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
uint16_t inet_atop(const char *port) {
return htons(atoi(port));
}
void herr(int output, const char* funcName) {
if (output < 0) {
perror(funcName);
exit(errno);
}
}
|