From ccc49f16f771f14f535264511a917d515a0e219c Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Sat, 11 Mar 2017 02:46:47 -0800 Subject: [PATCH] util: add missing #includes Detected by activating stronger warnings. If include is missing, prototypes might diverge. Signed-off-by: Ralf Ramsauer --- src/login.c | 1 + src/read.c | 2 ++ src/util.c | 1 + 3 files changed, 4 insertions(+) diff --git a/src/login.c b/src/login.c index aa817c0..de4fbb5 100644 --- a/src/login.c +++ b/src/login.c @@ -25,6 +25,7 @@ #include #endif +#include "login.h" #include "md5.h" /* diff --git a/src/read.c b/src/read.c index 2c26584..51c3bb0 100644 --- a/src/read.c +++ b/src/read.c @@ -19,6 +19,8 @@ #include #include +#include "read.h" + static int readname_loop(char *packet, int packetlen, char **src, char *dst, size_t length, size_t loop) { diff --git a/src/util.c b/src/util.c index 5cbad72..92e5f88 100644 --- a/src/util.c +++ b/src/util.c @@ -17,6 +17,7 @@ #include #include "common.h" +#include "util.h" char * get_resolvconf_addr()