Signed-off-by: Alejandro Colomar <alx@kernel.org>
POSIX.1\-2001 and POSIX.1\-2008 accepted this state of affairs and
proposed the following workaround:
\&
- *(void **) (&cosine) = dlsym(handle, "cos");
+ *(void **) &cosine = dlsym(handle, "cos");
\&
This (clumsy) cast conforms with the ISO C standard and will
avoid any compiler warnings.
e.key = data[i];
ep = hsearch(e, FIND);
printf("%9.9s \-> %9.9s:%d\[rs]n", e.key,
- ep ? ep\->key : "NULL", ep ? (int)(ep\->data) : 0);
+ ep ? ep\->key : "NULL", ep ? (int) ep\->data : 0);
}
hdestroy();
exit(EXIT_SUCCESS);
req.if.ifi_family = AF_UNSPEC;
req.if.ifi_index = INTERFACE_INDEX;
req.if.ifi_change = 0xffffffff; /* ??? */
-rta = (struct rtattr *)(((char *) &req) +
+rta = (struct rtattr *) ((char *) &req +
NLMSG_ALIGN(req.nh.nlmsg_len));
rta\->rta_type = IFLA_MTU;
rta\->rta_len = RTA_LENGTH(sizeof(mtu));