mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 07:16:39 +00:00
pimd: Fix compile warning (error with Werror) on BSD
* ioctl commands can vary in type between systems, cast to an unsigned long before passing to format command.
This commit is contained in:
parent
18a232959d
commit
02e51cad49
@ -2344,8 +2344,11 @@ static void show_mroute_count(struct vty *vty)
|
||||
if (ioctl(qpim_mroute_socket_fd, SIOCGETSGCNT, &sgreq)) {
|
||||
int e = errno;
|
||||
vty_out(vty,
|
||||
"ioctl(SIOCGETSGCNT=%d) failure for (S,G)=(%s,%s): errno=%d: %s%s",
|
||||
SIOCGETSGCNT,
|
||||
"ioctl(SIOCGETSGCNT=%lu) failure for (S,G)=(%s,%s): errno=%d: %s%s",
|
||||
/* note that typeof ioctl defs can vary across platforms, from
|
||||
* int, to unsigned int, to long unsigned int
|
||||
*/
|
||||
(unsigned long)SIOCGETSGCNT,
|
||||
source_str,
|
||||
group_str,
|
||||
e,
|
||||
|
Loading…
Reference in New Issue
Block a user