Hello, If sizeof(void *) > sizeof(int), a warning is output.
No functional change by this patch. ------------------------------------------------------------------------ UMEZAWA Takeshi (FAMILY Given) <umez...@iij.ad.jp> Internet Initiative Japan Inc. diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c index 53719ec..d1039ad 100644 --- a/usr.sbin/rtadvd/config.c +++ b/usr.sbin/rtadvd/config.c @@ -55,6 +55,7 @@ #include <search.h> #include <unistd.h> #include <ifaddrs.h> +#include <stdint.h> #include "rtadvd.h" #include "advcap.h" @@ -880,7 +881,7 @@ make_packet(struct rainfo *rainfo) } /* zero out the end of the current option */ - while ((int)buf % 8 != 0) + while (((uintptr_t)buf) % 8 != 0) *buf++ = '\0'; }