summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_apiserver.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-27 21:13:34 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-27 21:13:34 +0200
commitd7c0a89a3a5697783a6dd89333ab660074790890 (patch)
treeeefa73e502f919b524b8a345437260d4acc23083 /ospfd/ospf_apiserver.h
parenttools, doc: update checkpatch for u_int_* (diff)
downloadfrr-d7c0a89a3a5697783a6dd89333ab660074790890.tar.xz
frr-d7c0a89a3a5697783a6dd89333ab660074790890.zip
*: use C99 standard fixed-width integer types
The following types are nonstandard: - u_char - u_short - u_int - u_long - u_int8_t - u_int16_t - u_int32_t Replace them with the C99 standard types: - uint8_t - unsigned short - unsigned int - unsigned long - uint8_t - uint16_t - uint32_t Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_apiserver.h')
-rw-r--r--ospfd/ospf_apiserver.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/ospfd/ospf_apiserver.h b/ospfd/ospf_apiserver.h
index 59d18bfd6..89a947497 100644
--- a/ospfd/ospf_apiserver.h
+++ b/ospfd/ospf_apiserver.h
@@ -28,8 +28,8 @@
/* List of opaque types that application registered */
struct registered_opaque_type {
- u_char lsa_type;
- u_char opaque_type;
+ uint8_t lsa_type;
+ uint8_t opaque_type;
};
@@ -96,7 +96,7 @@ extern int ospf_apiserver_read(struct thread *thread);
extern int ospf_apiserver_sync_write(struct thread *thread);
extern int ospf_apiserver_async_write(struct thread *thread);
extern int ospf_apiserver_send_reply(struct ospf_apiserver *apiserv,
- u_int32_t seqnr, u_char rc);
+ uint32_t seqnr, uint8_t rc);
/* -----------------------------------------------------------
* Followings are message handler functions
@@ -152,11 +152,11 @@ extern int ospf_apiserver_handle_sync_lsdb(struct ospf_apiserver *apiserv,
*/
extern int ospf_apiserver_register_opaque_type(struct ospf_apiserver *apiserver,
- u_char lsa_type,
- u_char opaque_type);
+ uint8_t lsa_type,
+ uint8_t opaque_type);
extern int
ospf_apiserver_unregister_opaque_type(struct ospf_apiserver *apiserver,
- u_char lsa_type, u_char opaque_type);
+ uint8_t lsa_type, uint8_t opaque_type);
extern struct ospf_lsa *
ospf_apiserver_opaque_lsa_new(struct ospf_area *area, struct ospf_interface *oi,
struct lsa_header *protolsa);
@@ -186,8 +186,8 @@ extern void ospf_apiserver_show_info(struct vty *vty, struct ospf_lsa *lsa);
extern int ospf_ospf_apiserver_lsa_originator(void *arg);
extern struct ospf_lsa *ospf_apiserver_lsa_refresher(struct ospf_lsa *lsa);
extern void ospf_apiserver_flush_opaque_lsa(struct ospf_apiserver *apiserv,
- u_char lsa_type,
- u_char opaque_type);
+ uint8_t lsa_type,
+ uint8_t opaque_type);
/* -----------------------------------------------------------
* Followings are hooks when LSAs are updated or deleted
@@ -200,7 +200,7 @@ extern void ospf_apiserver_flush_opaque_lsa(struct ospf_apiserver *apiserv,
extern int ospf_apiserver_lsa_update(struct ospf_lsa *lsa);
extern int ospf_apiserver_lsa_delete(struct ospf_lsa *lsa);
-extern void ospf_apiserver_clients_lsa_change_notify(u_char msgtype,
+extern void ospf_apiserver_clients_lsa_change_notify(uint8_t msgtype,
struct ospf_lsa *lsa);
#endif /* _OSPF_APISERVER_H */