mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
lib, bgpd: smux_trap return code is never used
The return code from smux_trap is never used. If we have never used it after all this time. Remove the return from the function. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
227b6af0d7
commit
97e21b4bd8
@ -870,7 +870,7 @@ static int bgpTrapEstablished(struct peer *peer)
|
|||||||
|
|
||||||
oid_copy_addr(index, &addr, IN_ADDR_SIZE);
|
oid_copy_addr(index, &addr, IN_ADDR_SIZE);
|
||||||
|
|
||||||
ret = smux_trap(bgp_variables, array_size(bgp_variables), bgp_trap_oid,
|
smux_trap(bgp_variables, array_size(bgp_variables), bgp_trap_oid,
|
||||||
array_size(bgp_trap_oid), bgp_oid,
|
array_size(bgp_trap_oid), bgp_oid,
|
||||||
sizeof(bgp_oid) / sizeof(oid), index, IN_ADDR_SIZE,
|
sizeof(bgp_oid) / sizeof(oid), index, IN_ADDR_SIZE,
|
||||||
bgpTrapList, array_size(bgpTrapList), BGPESTABLISHED);
|
bgpTrapList, array_size(bgpTrapList), BGPESTABLISHED);
|
||||||
|
@ -265,7 +265,7 @@ void smux_register_mib(const char *descr, struct variable *var, size_t width,
|
|||||||
register_mib(descr, var, width, num, name, namelen);
|
register_mib(descr, var, width, num, name, namelen);
|
||||||
}
|
}
|
||||||
|
|
||||||
int smux_trap(struct variable *vp, size_t vp_len, const oid *ename,
|
void smux_trap(struct variable *vp, size_t vp_len, const oid *ename,
|
||||||
size_t enamelen, const oid *name, size_t namelen,
|
size_t enamelen, const oid *name, size_t namelen,
|
||||||
const oid *iname, size_t inamelen,
|
const oid *iname, size_t inamelen,
|
||||||
const struct trap_object *trapobj, size_t trapobjlen,
|
const struct trap_object *trapobj, size_t trapobjlen,
|
||||||
@ -277,9 +277,9 @@ int smux_trap(struct variable *vp, size_t vp_len, const oid *ename,
|
|||||||
oid_copy(trap_index[0].indexname, iname, inamelen);
|
oid_copy(trap_index[0].indexname, iname, inamelen);
|
||||||
trap_index[0].indexlen = inamelen;
|
trap_index[0].indexlen = inamelen;
|
||||||
|
|
||||||
return (smux_trap_multi_index(
|
smux_trap_multi_index(vp, vp_len, ename, enamelen, name, namelen,
|
||||||
vp, vp_len, ename, enamelen, name, namelen, trap_index,
|
trap_index, array_size(trap_index), trapobj,
|
||||||
array_size(trap_index), trapobj, trapobjlen, sptrap));
|
trapobjlen, sptrap);
|
||||||
}
|
}
|
||||||
|
|
||||||
int smux_trap_multi_index(struct variable *vp, size_t vp_len, const oid *ename,
|
int smux_trap_multi_index(struct variable *vp, size_t vp_len, const oid *ename,
|
||||||
|
@ -131,7 +131,7 @@ extern int smux_header_table(struct variable *, oid *, size_t *, int, size_t *,
|
|||||||
The use of the arguments may differ depending on the implementation
|
The use of the arguments may differ depending on the implementation
|
||||||
used.
|
used.
|
||||||
*/
|
*/
|
||||||
extern int smux_trap(struct variable *, size_t, const oid *, size_t,
|
extern void smux_trap(struct variable *, size_t, const oid *, size_t,
|
||||||
const oid *, size_t, const oid *, size_t,
|
const oid *, size_t, const oid *, size_t,
|
||||||
const struct trap_object *, size_t, uint8_t);
|
const struct trap_object *, size_t, uint8_t);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user