[Olsr-cvs] olsrd-current/lib/httpinfo/src admin_interface.h, 1.3, 1.4 olsrd_httpinfo.c, 1.86, 1.87
Bernd Petrovitsch
(spam-protected)
Fri Nov 16 20:12:57 CET 2007
- Previous message: [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
- Next message: [Olsr-cvs] olsrd-current/src build_msg.c, 1.38, 1.39 interfaces.c, 1.36, 1.37 interfaces.h, 1.44, 1.45 log.h, 1.6, 1.7 lq_route.c, 1.57, 1.58 lq_route.h, 1.6, 1.7 olsr.c, 1.62, 1.63 olsr.h, 1.26, 1.27
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/olsrd/olsrd-current/lib/httpinfo/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27640/lib/httpinfo/src
Modified Files:
admin_interface.h olsrd_httpinfo.c
Log Message:
* added -Wwrite-strings
Index: olsrd_httpinfo.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/httpinfo/src/olsrd_httpinfo.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -C2 -d -r1.86 -r1.87
*** olsrd_httpinfo.c 15 Nov 2007 00:35:32 -0000 1.86
--- olsrd_httpinfo.c 16 Nov 2007 19:12:55 -0000 1.87
***************
*** 136,144 ****
"border: 1px solid #000;\n}\n";
struct tab_entry
{
! char *tab_label;
! char *filename;
! int(*build_body_cb)(char *, olsr_u32_t);
olsr_bool display_tab;
};
--- 136,146 ----
"border: 1px solid #000;\n}\n";
+ typedef int(*build_body_callback)(char *, olsr_u32_t);
+
struct tab_entry
{
! const char *tab_label;
! const char *filename;
! build_body_callback build_body_cb;
olsr_bool display_tab;
};
***************
*** 146,150 ****
struct static_bin_file_entry
{
! char *filename;
unsigned char *data;
unsigned int data_size;
--- 148,152 ----
struct static_bin_file_entry
{
! const char *filename;
unsigned char *data;
unsigned int data_size;
***************
*** 153,157 ****
struct static_txt_file_entry
{
! char *filename;
const char *data;
};
--- 155,159 ----
struct static_txt_file_entry
{
! const char *filename;
const char *data;
};
***************
*** 159,163 ****
struct dynamic_file_entry
{
! char *filename;
int(*process_data_cb)(char *, olsr_u32_t, char *, olsr_u32_t);
};
--- 161,165 ----
struct dynamic_file_entry
{
! const char *filename;
int(*process_data_cb)(char *, olsr_u32_t, char *, olsr_u32_t);
};
***************
*** 171,175 ****
static int build_http_header(http_header_type, olsr_bool, olsr_u32_t, char *, olsr_u32_t);
! static int build_frame(char *, olsr_u32_t, char *, char *, int, int(*frame_body_cb)(char *, olsr_u32_t));
static int build_routes_body(char *, olsr_u32_t);
--- 173,177 ----
static int build_http_header(http_header_type, olsr_bool, olsr_u32_t, char *, olsr_u32_t);
! static int build_frame(char *, olsr_u32_t, const char *, const char *, int, build_body_callback frame_body_cb);
static int build_routes_body(char *, olsr_u32_t);
***************
*** 666,673 ****
static int build_frame(char *buf,
olsr_u32_t bufsize,
! char *title __attribute__((unused)),
! char *link __attribute__((unused)),
int width __attribute__((unused)),
! int(*frame_body_cb)(char *, olsr_u32_t))
{
int size = 0;
--- 668,675 ----
static int build_frame(char *buf,
olsr_u32_t bufsize,
! const char *title __attribute__((unused)),
! const char *link __attribute__((unused)),
int width __attribute__((unused)),
! build_body_callback frame_body_cb)
{
int size = 0;
Index: admin_interface.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/httpinfo/src/admin_interface.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** admin_interface.h 15 Jul 2007 17:54:07 -0000 1.3
--- admin_interface.h 16 Nov 2007 19:12:55 -0000 1.4
***************
*** 1,5 ****
/*
* HTTP Info plugin for the olsr.org OLSR daemon
! * Copyright (c) 2004, Andreas Tønnesen((spam-protected))
* All rights reserved.
*
--- 1,5 ----
/*
* HTTP Info plugin for the olsr.org OLSR daemon
! * Copyright (c) 2004, Andreas Tønnesen((spam-protected))
* All rights reserved.
*
- Previous message: [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
- Next message: [Olsr-cvs] olsrd-current/src build_msg.c, 1.38, 1.39 interfaces.c, 1.36, 1.37 interfaces.h, 1.44, 1.45 log.h, 1.6, 1.7 lq_route.c, 1.57, 1.58 lq_route.h, 1.6, 1.7 olsr.c, 1.62, 1.63 olsr.h, 1.26, 1.27
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Olsr-cvs
mailing list