Skip to content

Commit

Permalink
fix compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuji committed Mar 1, 2005
1 parent 40f37f8 commit 46946dc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions kame/kame/shisad/babymdd.c
@@ -1,4 +1,4 @@
/* $Id: babymdd.c,v 1.5 2005/03/01 17:38:01 ryuji Exp $ */
/* $Id: babymdd.c,v 1.6 2005/03/01 17:42:40 ryuji Exp $ */
/*
* Copyright (C) 2004 WIDE Project. All rights reserved.
*
Expand Down Expand Up @@ -187,7 +187,7 @@ main (argc, argv)

/* open syslog */
openlog("shisad(baby)", 0, LOG_DAEMON);
syslog(LOG_INFO, "Baby start !!\n");
syslog(LOG_INFO, "babymdd start !!\n");

/* mdd initialization */
LIST_INIT(&babyinfo.ifinfo_head);
Expand Down Expand Up @@ -230,11 +230,10 @@ main (argc, argv)
* available interfaces
*/
char ifname[IFNAMSIZ];
while ((ifname = if_indextoname(++argc, NULL)) != NULL) {
while (if_indextoname(++argc, ifname) != NULL) {
ifinfo = init_if(ifname);
if (ifinfo)
ifinfo->priority = priority++;

}

} else {
Expand Down Expand Up @@ -1294,7 +1293,7 @@ send_rs(struct if_info *ifinfo) {

if (sendmsg(icmpsock, &msg, 0) < 0) {
if (DEBUGHIGH)
syslog(LOG_ERR, "%s sendmsg: %s\n",
syslog(LOG_ERR, "%s sendmsg() %s\n",
__FUNCTION__, strerror(errno));
}

Expand Down

0 comments on commit 46946dc

Please sign in to comment.