diff options
| author | 2020-01-09 13:47:12 +0000 | |
|---|---|---|
| committer | 2020-01-09 13:47:12 +0000 | |
| commit | ad3b53661d6e8c6ff17607778560ff02c209fc9d (patch) | |
| tree | ad116f7232545d5c82adc4e17de67db281f9e7d6 /usr.sbin/bind/lib/isccfg/parser.c | |
| parent | unifdef network defines: (diff) | |
| download | wireguard-openbsd-ad3b53661d6e8c6ff17607778560ff02c209fc9d.tar.xz wireguard-openbsd-ad3b53661d6e8c6ff17607778560ff02c209fc9d.zip | |
unifdef printf and string functions:
#undef ISC_PLATFORM_NEEDVSNPRINTF
#undef ISC_PLATFORM_NEEDSPRINTF
#undef ISC_PLATFORM_NEEDPRINTF
#undef ISC_PLATFORM_NEEDFPRINTF
#define ISC_PLATFORM_QUADFORMAT "ll"
#undef ISC_PLATFORM_NEEDSTRSEP
#undef ISC_PLATFORM_NEEDSTRLCPY
#undef ISC_PLATFORM_NEEDSTRLCAT
#undef ISC_PLATFORM_NEEDSTRTOUL
#undef ISC_PLATFORM_NEEDMEMMOVE
#undef ISC_PLATFORM_NEEDSTRCASESTR
Diffstat (limited to 'usr.sbin/bind/lib/isccfg/parser.c')
| -rw-r--r-- | usr.sbin/bind/lib/isccfg/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bind/lib/isccfg/parser.c b/usr.sbin/bind/lib/isccfg/parser.c index ecf17cd6c42..6f45bb5c005 100644 --- a/usr.sbin/bind/lib/isccfg/parser.c +++ b/usr.sbin/bind/lib/isccfg/parser.c @@ -29,7 +29,7 @@ #include <isc/net.h> #include <isc/netaddr.h> #include <isc/netscope.h> -#include <isc/print.h> + #include <isc/string.h> #include <isc/sockaddr.h> #include <isc/symtab.h> @@ -848,7 +848,7 @@ void cfg_print_uint64(cfg_printer_t *pctx, const cfg_obj_t *obj) { char buf[32]; - snprintf(buf, sizeof(buf), "%" ISC_PRINT_QUADFORMAT "u", + snprintf(buf, sizeof(buf), "%llu", obj->value.uint64); cfg_print_cstr(pctx, buf); } |
