summaryrefslogtreecommitdiff
path: root/sbin/unwind/unwind.h
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-02-18 07:50:15 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-02-18 07:50:15 +0000
commit2b0d747e59a700ca8f2d2e6cd1315eb30211241e (patch)
treeda3d361c4e2b734657d047b08250f5cba46f25d3 /sbin/unwind/unwind.h
parent2e38cc17ae51707a9493c730bb9795cb03eeb0ab (diff)
Introduce IMSG_DATA_SIZE() macro to to replace reoccuring math on
imsg.hdr.len and shorten code. Input & OK pamela
Diffstat (limited to 'sbin/unwind/unwind.h')
-rw-r--r--sbin/unwind/unwind.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/unwind/unwind.h b/sbin/unwind/unwind.h
index 968d83740a1..c1f0621745c 100644
--- a/sbin/unwind/unwind.h
+++ b/sbin/unwind/unwind.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unwind.h,v 1.10 2019/02/17 16:15:31 florian Exp $ */
+/* $OpenBSD: unwind.h,v 1.11 2019/02/18 07:50:14 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -38,6 +38,8 @@
#define ROOT_DNSKEY_TTL 172800 /* TTL from authority */
#define KSK2017 ". 172800 IN DNSKEY 257 3 8 AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3+/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kvArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+eoZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU="
+#define IMSG_DATA_SIZE(imsg) ((imsg).hdr.len - IMSG_HEADER_SIZE)
+
enum {
PROC_MAIN,
PROC_RESOLVER,