[Olsr-cvs] olsrd-current/lib/nameservice/src nameservice.c, 1.36, 1.37

Bernd Petrovitsch (spam-protected)
Fri Nov 16 23:56:56 CET 2007


Update of /cvsroot/olsrd/olsrd-current/lib/nameservice/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15005/lib/nameservice/src

Modified Files:
	nameservice.c 
Log Message:
* added -Wcast-qual: this killed lots of unnecessary type-casts

Index: nameservice.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/nameservice/src/nameservice.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** nameservice.c	16 Nov 2007 19:12:55 -0000	1.36
--- nameservice.c	16 Nov 2007 22:56:54 -0000	1.37
***************
*** 191,195 ****
  	if (0 < strlen(value))
  	{
! 		*v = add_name_to_list(*v, (char*)value, addon.ui, NULL);
  		OLSR_PRINTF(1, "%s got %s (main address)\n", "Got", value);
  		return 0;
--- 191,195 ----
  	if (0 < strlen(value))
  	{
! 		*v = add_name_to_list(*v, value, addon.ui, NULL);
  		OLSR_PRINTF(1, "%s got %s (main address)\n", "Got", value);
  		return 0;
***************
*** 209,213 ****
  	{
  		// the IP is validated later
! 		*v = add_name_to_list(*v, (char*)value, NAME_HOST, &ip);
  		OLSR_PRINTF(1, "%s: %s got %s\n", "Got", addon.pc, value);
  		return 0;
--- 209,213 ----
  	{
  		// the IP is validated later
! 		*v = add_name_to_list(*v, value, NAME_HOST, &ip);
  		OLSR_PRINTF(1, "%s: %s got %s\n", "Got", addon.pc, value);
  		return 0;





More information about the Olsr-cvs mailing list