* @return 0 if a is zero, non-zero otherwise
*/
#define GNUNET_is_zero(a) \
- GNUNET_is_zero_ (a, sizeof (a))
+ GNUNET_is_zero_ (a, sizeof (*a))
/**
* @param error the error type
*/
void
-GNUNET_MQ_inject_error (struct GNUNET_MQ_Handle *mq, enum GNUNET_MQ_Error error)
+GNUNET_MQ_inject_error (struct GNUNET_MQ_Handle *mq,
+ enum GNUNET_MQ_Error error)
{
if (NULL == mq->error_handler)
{
(int) error);
return;
}
- mq->error_handler (mq->error_handler_cls, error);
+ mq->error_handler (mq->error_handler_cls,
+ error);
}
const struct in6_addr *ip)
{
unsigned int i;
- unsigned int j;
if (NULL == list)
return GNUNET_NO;
NEXT:
while (0 != GNUNET_is_zero (&list[i].network))
{
- for (j = 0; j < sizeof(struct in6_addr) / sizeof(int); j++)
+ for (unsigned int j = 0; j < sizeof(struct in6_addr) / sizeof(int); j++)
if (((((int *) ip)[j] & ((int *) &list[i].netmask)[j])) !=
(((int *) &list[i].network)[j] & ((int *) &list[i].netmask)[j]))
{