[Olsr-cvs] olsrd-current/lib/pgraph/src olsrd_pgraph.c,1.2,1.3

Andreas T�nnesen (spam-protected)
Sat Jan 7 09:17:46 CET 2006


Update of /cvsroot/olsrd/olsrd-current/lib/pgraph/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16043/pgraph/src

Modified Files:
	olsrd_pgraph.c 
Log Message:
Adapted plugins to the cleanup of external variables in olsrd

Index: olsrd_pgraph.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/pgraph/src/olsrd_pgraph.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** olsrd_pgraph.c	29 Dec 2005 19:48:43 -0000	1.2
--- olsrd_pgraph.c	7 Jan 2006 08:17:43 -0000	1.3
***************
*** 83,87 ****
  //  struct link_entry* link;
  
!   main_adr = olsr_ip_to_string(&main_addr);
    adr = olsr_ip_to_string(&neighbor->neighbor_main_addr);
    len = sprintf( buf, "add link %s %s\n", main_adr, adr );
--- 83,87 ----
  //  struct link_entry* link;
  
!   main_adr = olsr_ip_to_string(&olsr_cnf->main_addr);
    adr = olsr_ip_to_string(&neighbor->neighbor_main_addr);
    len = sprintf( buf, "add link %s %s\n", main_adr, adr );
***************
*** 224,228 ****
  	  ipc_open = 1;
  	  olsr_printf(1, "(DOT DRAW)IPC: Connection from %s\n",addr);
!           len = sprintf(buf, "add node %s\n", olsr_ip_to_string(&main_addr));
    	  ipc_send(buf, len);
  	  pcf_event(1, 1, 1);
--- 224,228 ----
  	  ipc_open = 1;
  	  olsr_printf(1, "(DOT DRAW)IPC: Connection from %s\n",addr);
!           len = sprintf(buf, "add node %s\n", olsr_ip_to_string(&olsr_cnf->main_addr));
    	  ipc_send(buf, len);
  	  pcf_event(1, 1, 1);
***************
*** 409,413 ****
  
  
- #define COMP_IP(ip1, ip2) (!memcmp(ip1, ip2, ipsize))
  struct link_entry *olsr_neighbor_best_link(union olsr_ip_addr *main)
  {
--- 409,412 ----





More information about the Olsr-cvs mailing list