diff options
author | Paul Jakma <paul@jakma.org> | 2015-09-24 11:26:55 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetwroks.com> | 2016-05-26 02:38:33 +0200 |
commit | 02e51cad49abd85ce644f5219efd5cbd6e6acb21 (patch) | |
tree | 1fa9fb012adcade21e9555c8de88b5909944b70b /pimd/pim_cmd.c | |
parent | pimd: Remove stdout zlog changes (diff) | |
download | frr-02e51cad49abd85ce644f5219efd5cbd6e6acb21.tar.xz frr-02e51cad49abd85ce644f5219efd5cbd6e6acb21.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | pimd/pim_cmd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index bbefdf387..c3f0feb4e 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -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, |