diff options
author | Damien Miller <djm@mindrot.org> | 2014-04-20 13:21:22 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-04-20 13:21:22 +1000 |
commit | 4f40209aa4060b9c066a2f0d9332ace7b8dfb391 (patch) | |
tree | 3f023418e3afa0ae151339aecae6d72b978014b8 /misc.h | |
parent | 9235a030ad1b16903fb495d81544e0f7c7449523 (diff) |
- 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
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.h,v 1.50 2013/10/14 23:28:23 djm Exp $ */ | 1 | /* $OpenBSD: misc.h,v 1.51 2014/03/26 04:55:35 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -70,17 +70,17 @@ int tun_open(int, int); | |||
70 | 70 | ||
71 | /* Functions to extract or store big-endian words of various sizes */ | 71 | /* Functions to extract or store big-endian words of various sizes */ |
72 | u_int64_t get_u64(const void *) | 72 | u_int64_t get_u64(const void *) |
73 | __attribute__((__bounded__( __minbytes__, 1, 8))); | 73 | __bounded(( __minbytes__, 1, 8)); |
74 | u_int32_t get_u32(const void *) | 74 | u_int32_t get_u32(const void *) |
75 | __attribute__((__bounded__( __minbytes__, 1, 4))); | 75 | __bounded(( __minbytes__, 1, 4)); |
76 | u_int16_t get_u16(const void *) | 76 | u_int16_t get_u16(const void *) |
77 | __attribute__((__bounded__( __minbytes__, 1, 2))); | 77 | __bounded(( __minbytes__, 1, 2)); |
78 | void put_u64(void *, u_int64_t) | 78 | void put_u64(void *, u_int64_t) |
79 | __attribute__((__bounded__( __minbytes__, 1, 8))); | 79 | __bounded(( __minbytes__, 1, 8)); |
80 | void put_u32(void *, u_int32_t) | 80 | void put_u32(void *, u_int32_t) |
81 | __attribute__((__bounded__( __minbytes__, 1, 4))); | 81 | __bounded(( __minbytes__, 1, 4)); |
82 | void put_u16(void *, u_int16_t) | 82 | void put_u16(void *, u_int16_t) |
83 | __attribute__((__bounded__( __minbytes__, 1, 2))); | 83 | __bounded(( __minbytes__, 1, 2)); |
84 | 84 | ||
85 | struct bwlimit { | 85 | struct bwlimit { |
86 | size_t buflen; | 86 | size_t buflen; |