From: Vincent Bernat Date: Tue, 7 May 2013 20:05:01 +0000 (+0200) Subject: lib: use uint8_t instead of u_int8_t X-Git-Tag: 0.7.3~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae5cae025029463694cdb79cdd9e07ac752dd201;p=thirdparty%2Flldpd.git lib: use uint8_t instead of u_int8_t `uint8_t` is part of C99 and comes from `stdint.h`. `u_int8_t` works on many OS but not on some. There are many other occurrences but we fix those here because this is the only public header. --- diff --git a/src/lib/lldpctl.h b/src/lib/lldpctl.h index 3dbff3b0..e9eba63a 100644 --- a/src/lib/lldpctl.h +++ b/src/lib/lldpctl.h @@ -819,7 +819,7 @@ lldpctl_atom_t *lldpctl_atom_set_str(lldpctl_atom_t *atom, lldpctl_key_t key, * The provided buffer may live inside the atom providing it. If you need it * longer, duplicate it. */ -const u_int8_t *lldpctl_atom_get_buffer(lldpctl_atom_t *atom, lldpctl_key_t key, +const uint8_t *lldpctl_atom_get_buffer(lldpctl_atom_t *atom, lldpctl_key_t key, size_t *length); /** @@ -837,7 +837,7 @@ const u_int8_t *lldpctl_atom_get_buffer(lldpctl_atom_t *atom, lldpctl_key_t key, * correct. */ lldpctl_atom_t *lldpctl_atom_set_buffer(lldpctl_atom_t *atom, lldpctl_key_t key, - const u_int8_t *value, size_t length); + const uint8_t *value, size_t length); /** * Retrieve a bit of information as an integer.