[Olsr-cvs] olsrd-current/src/cfgparser olsrd_conf.c, 1.63, 1.64 oparse.y, 1.40, 1.41

Bernd Petrovitsch (spam-protected)
Thu Nov 29 23:21:28 CET 2007


Update of /cvsroot/olsrd/olsrd-current/src/cfgparser
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7724/src/cfgparser

Modified Files:
	olsrd_conf.c oparse.y 
Log Message:
"open_ipc" is  only a boolean value containing "olsr_cnf->debug_level > 1".
So I see no reason to keep that variable.

Apart from the the attached patch makes the "#if" condition for the
"rts" field identical to all other references to it.


Index: olsrd_conf.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/cfgparser/olsrd_conf.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** olsrd_conf.c	29 Nov 2007 00:49:40 -0000	1.63
--- olsrd_conf.c	29 Nov 2007 22:21:26 -0000	1.64
***************
*** 437,441 ****
      cnf->willingness_auto = DEF_WILL_AUTO;
      cnf->ipc_connections = DEF_IPC_CONNECTIONS;
-     cnf->open_ipc = cnf->ipc_connections ? OLSR_TRUE : OLSR_FALSE;
  
      cnf->use_hysteresis = DEF_USE_HYST;
--- 437,440 ----

Index: oparse.y
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/cfgparser/oparse.y,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** oparse.y	29 Nov 2007 00:49:40 -0000	1.40
--- oparse.y	29 Nov 2007 22:21:26 -0000	1.41
***************
*** 324,328 ****
  {
    olsr_cnf->ipc_connections = $2->integer;
-   olsr_cnf->open_ipc = olsr_cnf->ipc_connections ? OLSR_TRUE : OLSR_FALSE;
    free($2);
  }
--- 324,327 ----





More information about the Olsr-cvs mailing list