From ae5cae025029463694cdb79cdd9e07ac752dd201 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 7 May 2013 22:05:01 +0200 Subject: [PATCH] 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. --- src/lib/lldpctl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.39.5