avoid compile warning

This commit is contained in:
zhu 2013-11-20 14:52:04 +08:00
parent bdb028eea5
commit a93028913c

View File

@ -145,7 +145,7 @@ get_src_for_route_to(const struct sockaddr * dst,
if(src_len && src) {
if(*src_len < RTA_PAYLOAD(rta)) {
syslog(LOG_WARNING, "cannot copy src: %u<%lu",
(unsigned)*src_len, RTA_PAYLOAD(rta));
(unsigned)*src_len, (unsigned long)RTA_PAYLOAD(rta));
goto error;
}
*src_len = RTA_PAYLOAD(rta);