]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lib: use uint8_t instead of u_int8_t
authorVincent Bernat <bernat@luffy.cx>
Tue, 7 May 2013 20:05:01 +0000 (22:05 +0200)
committerVincent Bernat <bernat@luffy.cx>
Tue, 7 May 2013 20:05:01 +0000 (22:05 +0200)
`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

index 3dbff3b0076da87fb621b24e6cfa6d41c0f43224..e9eba63a6ef2bb60127069752c7693d15d933185 100644 (file)
@@ -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.