diff options
author | Steven Barth <steven@midlink.org> | 2014-03-18 14:39:22 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-03-18 14:39:22 +0100 |
commit | aa894a5a8f31056582cd990982df1322a36a0f2b (patch) | |
tree | 4cb3ccc76eb1d321f13758f43fe38bd077685627 /src/script.c | |
parent | 9c7c654cb2d5ac6ac536f603cd5a9372416e91da (diff) | |
download | odhcp6c-aa894a5a8f31056582cd990982df1322a36a0f2b.tar.gz |
Fix building with clang 3.4
Diffstat (limited to 'src/script.c')
-rw-r--r-- | src/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script.c b/src/script.c index 92bc464..61bab67 100644 --- a/src/script.c +++ b/src/script.c @@ -20,6 +20,7 @@ #include <syslog.h> #include <signal.h> #include <unistd.h> +#include <inttypes.h> #include <arpa/inet.h> #include <netinet/in.h> @@ -175,7 +176,7 @@ static void entry_to_env(const char *name, const void *data, size_t len, enum en inet_ntop(AF_INET6, &e[i].target, &buf[buf_len], INET6_ADDRSTRLEN); buf_len += strlen(&buf[buf_len]); if (type != ENTRY_HOST) { - buf_len += snprintf(&buf[buf_len], 6, "/%hhu", e[i].length); + buf_len += snprintf(&buf[buf_len], 6, "/%"PRIu16, e[i].length); if (type == ENTRY_ROUTE) { buf[buf_len++] = ','; if (!IN6_IS_ADDR_UNSPECIFIED(&e[i].router)) { |