[Olsr-cvs] olsrd-current/lib/dot_draw/src olsrd_plugin.c,1.12,1.13
Bernd Petrovitsch
(spam-protected)
Tue Apr 3 00:23:11 CEST 2007
Update of /cvsroot/olsrd/olsrd-current/lib/dot_draw/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26826/lib/dot_draw/src
Modified Files:
olsrd_plugin.c
Log Message:
* print errors as all the other plugins
Index: olsrd_plugin.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/dot_draw/src/olsrd_plugin.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** olsrd_plugin.c 2 Jun 2005 15:09:37 -0000 1.12
--- olsrd_plugin.c 2 Apr 2007 22:23:09 -0000 1.13
***************
*** 52,55 ****
--- 52,56 ----
#include <netinet/in.h>
+ #include "olsr.h"
#include "olsrd_plugin.h"
#include "olsrd_dot_draw.h"
***************
*** 117,129 ****
if(!strcmp(key, "port"))
{
! ipc_port = atoi(value);
! printf("(DOT DRAW) listening on port: %d\n", ipc_port);
}
if(!strcmp(key, "accept"))
{
! inet_aton(value, &ipc_accept_ip);
! printf("(DOT DRAW) accept only: %s\n", inet_ntoa(ipc_accept_ip));
}
return 1;
}
--- 118,133 ----
if(!strcmp(key, "port"))
{
! ipc_port = atoi(value);
! olsr_printf(0, "(DOT DRAW) listening on port: %d\n", ipc_port);
! return 1;
}
if(!strcmp(key, "accept"))
{
! inet_aton(value, &ipc_accept_ip);
! olsr_printf(0, "(DOT DRAW) accept only: %s\n", inet_ntoa(ipc_accept_ip));
! return 1;
}
+ olsr_printf(0, "(DOT DRAW) ignored: %s=\"%s\"\n", key, value);
return 1;
}
More information about the Olsr-cvs
mailing list