summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/serial.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-09-14 08:40:43 +0000
committerflorian <florian@openbsd.org>2020-09-14 08:40:43 +0000
commit1fb015a8af3a7e9b85db2510147a155826ef04d9 (patch)
tree91b8b6a26d148e703635ab9d6b2cc01934af9a76 /usr.bin/dig/lib/isc/serial.c
parentBunch of dead stores and otherwise unused stuff lets us get rid of (diff)
downloadwireguard-openbsd-1fb015a8af3a7e9b85db2510147a155826ef04d9.tar.xz
wireguard-openbsd-1fb015a8af3a7e9b85db2510147a155826ef04d9.zip
Mechanically replace isc_boolean_t with int.
OK deraadt
Diffstat (limited to 'usr.bin/dig/lib/isc/serial.c')
-rw-r--r--usr.bin/dig/lib/isc/serial.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/dig/lib/isc/serial.c b/usr.bin/dig/lib/isc/serial.c
index 6c9e61236c9..9735b6271cb 100644
--- a/usr.bin/dig/lib/isc/serial.c
+++ b/usr.bin/dig/lib/isc/serial.c
@@ -14,18 +14,18 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: serial.c,v 1.3 2020/02/25 05:00:43 jsg Exp $ */
+/* $Id: serial.c,v 1.4 2020/09/14 08:40:44 florian Exp $ */
/*! \file */
#include <isc/serial.h>
-isc_boolean_t
+int
isc_serial_gt(uint32_t a, uint32_t b) {
- return (((int32_t)(a - b) > 0) ? ISC_TRUE : ISC_FALSE);
+ return (((int32_t)(a - b) > 0) ? 1 : 0);
}
-isc_boolean_t
+int
isc_serial_ge(uint32_t a, uint32_t b) {
- return ((a == b) ? ISC_TRUE : isc_serial_gt(a, b));
+ return ((a == b) ? 1 : isc_serial_gt(a, b));
}