mirror of
https://github.com/FRRouting/frr.git
synced 2026-01-16 23:14:01 +00:00
pimd: Declarations should have variable names
Our coding standard is that all function declarations should have actual function names. Let's try to clean up all that is missing this in pimd. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
2ebbe67d9d
commit
88c8262dcb
1 changed files with 5 additions and 6 deletions
|
|
@ -36,8 +36,7 @@ extern int rtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type);
|
|||
extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req,
|
||||
int len);
|
||||
|
||||
typedef int (*rtnl_filter_t)(const struct sockaddr_nl *, struct nlmsghdr *n,
|
||||
void *);
|
||||
typedef int (*rtnl_filter_t)(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
|
||||
|
||||
struct rtnl_dump_filter_arg {
|
||||
rtnl_filter_t filter;
|
||||
|
|
@ -54,8 +53,8 @@ extern int rtnl_dump_filter(struct rtnl_handle *rth, rtnl_filter_t filter,
|
|||
extern int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
|
||||
unsigned groups, struct nlmsghdr *answer,
|
||||
rtnl_filter_t junk, void *jarg);
|
||||
extern int rtnl_send(struct rtnl_handle *rth, const char *buf, int);
|
||||
extern int rtnl_send_check(struct rtnl_handle *rth, const char *buf, int);
|
||||
extern int rtnl_send(struct rtnl_handle *rth, const char *buf, int len);
|
||||
extern int rtnl_send_check(struct rtnl_handle *rth, const char *buf, int len);
|
||||
|
||||
extern int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
|
||||
extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data,
|
||||
|
|
@ -86,8 +85,8 @@ extern int __parse_rtattr_nested_compat(struct rtattr *tb[], int max,
|
|||
__parse_rtattr_nested_compat(tb, max, rta, len); \
|
||||
})
|
||||
|
||||
extern int rtnl_listen(struct rtnl_handle *, rtnl_filter_t handler, void *jarg);
|
||||
extern int rtnl_from_file(FILE *, rtnl_filter_t handler, void *jarg);
|
||||
extern int rtnl_listen(struct rtnl_handle *rtnl, rtnl_filter_t handler, void *jarg);
|
||||
extern int rtnl_from_file(FILE *rtnl, rtnl_filter_t handler, void *jarg);
|
||||
|
||||
#define NLMSG_TAIL(nmsg) \
|
||||
((struct rtattr *)(((uint8_t *)(nmsg)) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue