diff --git a/src/sockets.c b/src/sockets.c
index bc2d11f..33b0180 100644
--- a/src/sockets.c
+++ b/src/sockets.c
@@ -15,7 +15,6 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
-#include
#include
#include
#include
@@ -33,7 +32,8 @@ int initTLS() {
return 0;
}
-Listener *createListener(SocketType type, uint16_t port, int backlog, ...) {
+Listener *createListener(SocketType type, unsigned short port,
+ int backlog, ...) {
Listener *ret = malloc(sizeof(Listener));
va_list ap;
if (ret == NULL)
diff --git a/src/swebs/sitefile.h b/src/swebs/sitefile.h
index 19b19de..56ed686 100644
--- a/src/swebs/sitefile.h
+++ b/src/swebs/sitefile.h
@@ -18,7 +18,6 @@
#ifndef HAVE_SITEFILE
#define HAVE_SITEFILE
#include
-#include
#include
#include
@@ -44,7 +43,7 @@ typedef struct {
char *key;
char *cert;
int timeout;
- uint16_t port;
+ unsigned short port;
#if DYNAMIC_LINKED_PAGES
int (*getResponse)(Request *, Response *);
#endif
diff --git a/src/util.c b/src/util.c
index 49bc23a..ac27122 100644
--- a/src/util.c
+++ b/src/util.c
@@ -19,7 +19,6 @@
#include
#include
#include
-#include
#include
#include
@@ -63,7 +62,7 @@ int istrcmp(char *s1, char *s2) {
}
RequestType getType(char *str) {
- uint64_t type;
+ unsigned long type;
int i;
if (strlen(str) >= 8)
return INVALID;