[PATCH] Improve endian conversion in umac.c

Rolf Eike Beer eb at emlix.com
Fri Mar 11 16:56:15 AEDT 2022


> + * Forward declaration of the functions in order to maintain
> + * the attributes.
> + * Chris Rapier <rapier at psc.edu> 2022-03-09 */
> +
> +static u_int32_t umac_get_u32_le(const void *)
> +    __attribute__((__bounded__(__minbytes__, 1, 4)));
> +
> +static u_int32_t
> +umac_get_u32_le(const void *vp)

You should be able to combine this into one statement if you write:

static __attribute__((__bounded__(__minbytes__, 1, 4)))
u_int32_t umac_get_u32_le(const void *)
{

Eike
-- 
Rolf Eike Beer, emlix GmbH, https://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Gothaer Platz 3, 37083 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055

emlix - smart embedded open source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 313 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20220311/fc8adb42/attachment.asc>


More information about the openssh-unix-dev mailing list