From 4f40209aa4060b9c066a2f0d9332ace7b8dfb391 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sun, 20 Apr 2014 13:21:22 +1000 Subject: - djm@cvs.openbsd.org 2014/03/26 04:55:35 [chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c [misc.h poly1305.h ssh-pkcs11.c] use __bounded(...) attribute recently added to sys/cdefs.h instead of longform __attribute__(__bounded(...)); for brevity and a warning free compilation with llvm/clang --- misc.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'misc.h') diff --git a/misc.h b/misc.h index d4df619cd..a85e4c3ae 100644 --- a/misc.h +++ b/misc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.50 2013/10/14 23:28:23 djm Exp $ */ +/* $OpenBSD: misc.h,v 1.51 2014/03/26 04:55:35 djm Exp $ */ /* * Author: Tatu Ylonen @@ -70,17 +70,17 @@ int tun_open(int, int); /* Functions to extract or store big-endian words of various sizes */ u_int64_t get_u64(const void *) - __attribute__((__bounded__( __minbytes__, 1, 8))); + __bounded(( __minbytes__, 1, 8)); u_int32_t get_u32(const void *) - __attribute__((__bounded__( __minbytes__, 1, 4))); + __bounded(( __minbytes__, 1, 4)); u_int16_t get_u16(const void *) - __attribute__((__bounded__( __minbytes__, 1, 2))); + __bounded(( __minbytes__, 1, 2)); void put_u64(void *, u_int64_t) - __attribute__((__bounded__( __minbytes__, 1, 8))); + __bounded(( __minbytes__, 1, 8)); void put_u32(void *, u_int32_t) - __attribute__((__bounded__( __minbytes__, 1, 4))); + __bounded(( __minbytes__, 1, 4)); void put_u16(void *, u_int16_t) - __attribute__((__bounded__( __minbytes__, 1, 2))); + __bounded(( __minbytes__, 1, 2)); struct bwlimit { size_t buflen; -- cgit v1.2.3