[Olsr-cvs] olsrd-current/lib/nameservice/src nameservice.c, 1.35, 1.36 nameservice.h, 1.15, 1.16
Bernd Petrovitsch
(spam-protected)
Fri Nov 16 20:12:57 CET 2007
Update of /cvsroot/olsrd/olsrd-current/lib/nameservice/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27640/lib/nameservice/src
Modified Files:
nameservice.c nameservice.h
Log Message:
* added -Wwrite-strings
Index: nameservice.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/nameservice/src/nameservice.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** nameservice.h 5 Nov 2007 15:32:55 -0000 1.15
--- nameservice.h 16 Nov 2007 19:12:55 -0000 1.16
***************
*** 183,187 ****
lookup_defhna_latlon(union olsr_ip_addr *ip);
! char*
lookup_name_latlon(union olsr_ip_addr *ip);
--- 183,187 ----
lookup_defhna_latlon(union olsr_ip_addr *ip);
! const char*
lookup_name_latlon(union olsr_ip_addr *ip);
Index: nameservice.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/nameservice/src/nameservice.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** nameservice.c 8 Nov 2007 22:47:40 -0000 1.35
--- nameservice.c 16 Nov 2007 19:12:55 -0000 1.36
***************
*** 303,307 ****
//regex string for validating the hostnames
! char *regex_name = "^[[:alnum:]_.-]+$";
//regex string for the service line
char *regex_service = olsr_malloc(256*sizeof(char) + strlen(my_suffix), "new *char from name_init for regex_service");
--- 303,307 ----
//regex string for validating the hostnames
! const char *regex_name = "^[[:alnum:]_.-]+$";
//regex string for the service line
char *regex_service = olsr_malloc(256*sizeof(char) + strlen(my_suffix), "new *char from name_init for regex_service");
***************
*** 1456,1460 ****
* lookup a nodes name
*/
! char*
lookup_name_latlon(union olsr_ip_addr *ip)
{
--- 1456,1460 ----
* lookup a nodes name
*/
! const char*
lookup_name_latlon(union olsr_ip_addr *ip)
{
More information about the Olsr-cvs
mailing list