Note two warnings in comments. The serious one is that struct
interface->ifindex probably needs to be signed, ssince we store and
compare to -1.
+2004-12-09 Greg Troxel <gdt@fnord.ir.bbn.com>
+
+ * kernel_socket.c (rtmsg_debug): char * => const char *
+
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* *.c: Change level of debug messages to LOG_DEBUG.
sdl = (struct sockaddr_dl *)cp;
break;
}
+ /* XXX warning: pointer of type `void *' used in arithmetic */
cp += SAROUNDUP(cp);
}
}
* If ifp does not exist or has an invalid index (-1), create or
* fill in an interface.
*/
+ /*
+ * XXX warning: comparison between signed and unsigned
+ * ifindex should probably be signed
+ */
if ((ifp == NULL) || (ifp->ifindex == -1))
{
/*
static void
rtmsg_debug (struct rt_msghdr *rtm)
{
- char *type = "Unknown";
+ const char *type = "Unknown";
struct message *mes;
for (mes = rtm_type_str; mes->str; mes++)