[Olsr-cvs] olsrd-current/lib/bmf/src Bmf.c, 1.9, 1.10 Bmf.h, 1.5, 1.6 NetworkInterfaces.c, 1.11, 1.12

Bernd Petrovitsch (spam-protected)
Fri Nov 16 20:12:57 CET 2007


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

Modified Files:
	Bmf.c Bmf.h NetworkInterfaces.c 
Log Message:
* added -Wwrite-strings

Index: Bmf.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/bmf/src/Bmf.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Bmf.h	11 Sep 2007 23:08:20 -0000	1.5
--- Bmf.h	16 Nov 2007 19:12:55 -0000	1.6
***************
*** 56,60 ****
  struct interface;
  
! void BmfPError(char* format, ...) __attribute__((format(printf, 1, 2)));
  union olsr_ip_addr* MainAddressOf(union olsr_ip_addr* ip);
  int InterfaceChange(struct interface* interf, int action);
--- 56,60 ----
  struct interface;
  
! void BmfPError(const char* format, ...) __attribute__((format(printf, 1, 2)));
  union olsr_ip_addr* MainAddressOf(union olsr_ip_addr* ip);
  int InterfaceChange(struct interface* interf, int action);

Index: NetworkInterfaces.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/bmf/src/NetworkInterfaces.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** NetworkInterfaces.c	8 Nov 2007 22:47:39 -0000	1.11
--- NetworkInterfaces.c	16 Nov 2007 19:12:55 -0000	1.12
***************
*** 1213,1217 ****
  static int CreateLocalEtherTunTap(void)
  {
!   static char* deviceName = "/dev/net/tun";
    struct ifreq ifreq;
    int etfd;
--- 1213,1217 ----
  static int CreateLocalEtherTunTap(void)
  {
!   static const char deviceName[] = "/dev/net/tun";
    struct ifreq ifreq;
    int etfd;

Index: Bmf.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/bmf/src/Bmf.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Bmf.c	8 Nov 2007 22:47:39 -0000	1.9
--- Bmf.c	16 Nov 2007 19:12:55 -0000	1.10
***************
*** 85,89 ****
   * Data Used  : none
   * ------------------------------------------------------------------------- */
! void BmfPError(char* format, ...)
  {
  #define MAX_STR_DESC 255
--- 85,89 ----
   * Data Used  : none
   * ------------------------------------------------------------------------- */
! void BmfPError(const char* format, ...)
  {
  #define MAX_STR_DESC 255





More information about the Olsr-cvs mailing list