mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-25 14:30:03 +00:00
Problem: missing () after sizeof cause build fail
Solution: use sizeof () to avoid build failure on Solaris 10 with gcc 3.4
This commit is contained in:
parent
b2eddf9746
commit
02d71a88ab
@ -86,7 +86,7 @@ int zmq::tcp_address_t::resolve_nic_name (const char *nic_, bool ipv6_, bool is_
|
|||||||
// Find the interface with the specified name and AF_INET family.
|
// Find the interface with the specified name and AF_INET family.
|
||||||
bool found = false;
|
bool found = false;
|
||||||
lifreq *ifrp = ifc.lifc_req;
|
lifreq *ifrp = ifc.lifc_req;
|
||||||
for (int n = 0; n < (int) (ifc.lifc_len / sizeof lifreq);
|
for (int n = 0; n < (int) (ifc.lifc_len / sizeof (lifreq));
|
||||||
n ++, ifrp ++) {
|
n ++, ifrp ++) {
|
||||||
if (!strcmp (nic_, ifrp->lifr_name)) {
|
if (!strcmp (nic_, ifrp->lifr_name)) {
|
||||||
rc = ioctl (fd, SIOCGLIFADDR, (char*) ifrp);
|
rc = ioctl (fd, SIOCGLIFADDR, (char*) ifrp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user