* the bound socket will be closed, and the resources of the monitor
* will be released.
*
+ * Returns: the passed udev monitor if it has still an active reference, or #NULL otherwise.
**/
_public_ struct udev_monitor *udev_monitor_unref(struct udev_monitor *udev_monitor)
{
nlh->magic, htonl(UDEV_MONITOR_MAGIC));
return NULL;
}
- if (nlh->properties_off+32 > buflen)
+ if (nlh->properties_off+32 > (size_t)buflen)
return NULL;
bufpos = nlh->properties_off;
} else {