Browse Source

const 1st arg for copy/print (merged [314])

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@525 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.2
Jan Kneschke 16 years ago
parent
commit
630bf7c857
  1. 4
      src/array.h
  2. 4
      src/data_array.c
  3. 4
      src/data_config.c
  4. 4
      src/data_count.c
  5. 4
      src/data_fastcgi.c
  6. 4
      src/data_integer.c
  7. 4
      src/data_string.c

4
src/array.h

@ -14,11 +14,11 @@ typedef enum { TYPE_UNSET, TYPE_STRING, TYPE_COUNT, TYPE_ARRAY, TYPE_INTEGER, TY
#define DATA_UNSET \
data_type_t type; \
buffer *key; \
struct data_unset *(*copy)(struct data_unset *src); \
struct data_unset *(*copy)(const struct data_unset *src); \
void (* free)(struct data_unset *p); \
void (* reset)(struct data_unset *p); \
int (*insert_dup)(struct data_unset *dst, struct data_unset *src); \
void (*print)(struct data_unset *p, int depth)
void (*print)(const struct data_unset *p, int depth)
typedef struct data_unset {
DATA_UNSET;

4
src/data_array.c

@ -4,7 +4,7 @@
#include "array.h"
static data_unset *data_array_copy(data_unset *s) {
static data_unset *data_array_copy(const data_unset *s) {
data_array *src = (data_array *)s;
data_array *ds = data_array_init();
@ -38,7 +38,7 @@ static int data_array_insert_dup(data_unset *dst, data_unset *src) {
return 0;
}
static void data_array_print(data_unset *d, int depth) {
static void data_array_print(const data_unset *d, int depth) {
data_array *ds = (data_array *)d;
array_print_indent(depth);

4
src/data_config.c

@ -4,7 +4,7 @@
#include "array.h"
static data_unset *data_config_copy(data_unset *s) {
static data_unset *data_config_copy(const data_unset *s) {
data_config *src = (data_config *)s;
data_config *ds = data_config_init();
@ -48,7 +48,7 @@ static int data_config_insert_dup(data_unset *dst, data_unset *src) {
return 0;
}
static void data_config_print(data_unset *d, int depth) {
static void data_config_print(const data_unset *d, int depth) {
data_config *ds = (data_config *)d;
array_print_indent(depth);

4
src/data_count.c

@ -4,7 +4,7 @@
#include "array.h"
static data_unset *data_count_copy(data_unset *s) {
static data_unset *data_count_copy(const data_unset *s) {
data_count *src = (data_count *)s;
data_count *ds = data_count_init();
@ -40,7 +40,7 @@ static int data_count_insert_dup(data_unset *dst, data_unset *src) {
return 0;
}
static void data_count_print(data_unset *d, int depth) {
static void data_count_print(const data_unset *d, int depth) {
data_count *ds = (data_count *)d;
array_print_indent(depth);

4
src/data_fastcgi.c

@ -5,7 +5,7 @@
#include "array.h"
#include "fastcgi.h"
static data_unset *data_fastcgi_copy(data_unset *s) {
static data_unset *data_fastcgi_copy(const data_unset *s) {
data_fastcgi *src = (data_fastcgi *)s;
data_fastcgi *ds = data_fastcgi_init();
@ -39,7 +39,7 @@ static int data_fastcgi_insert_dup(data_unset *dst, data_unset *src) {
return 0;
}
static void data_fastcgi_print(data_unset *d, int depth) {
static void data_fastcgi_print(const data_unset *d, int depth) {
data_fastcgi *ds = (data_fastcgi *)d;
array_print_indent(depth);

4
src/data_integer.c

@ -4,7 +4,7 @@
#include "array.h"
static data_unset *data_integer_copy(data_unset *s) {
static data_unset *data_integer_copy(const data_unset *s) {
data_integer *src = (data_integer *)s;
data_integer *ds = data_integer_init();
@ -37,7 +37,7 @@ static int data_integer_insert_dup(data_unset *dst, data_unset *src) {
return 0;
}
static void data_integer_print(data_unset *d, int depth) {
static void data_integer_print(const data_unset *d, int depth) {
data_integer *ds = (data_integer *)d;
array_print_indent(depth);

4
src/data_string.c

@ -5,7 +5,7 @@
#include "array.h"
static data_unset *data_string_copy(data_unset *s) {
static data_unset *data_string_copy(const data_unset *s) {
data_string *src = (data_string *)s;
data_string *ds = data_string_init();
@ -66,7 +66,7 @@ static int data_response_insert_dup(data_unset *dst, data_unset *src) {
}
static void data_string_print(data_unset *d, int depth) {
static void data_string_print(const data_unset *d, int depth) {
data_string *ds = (data_string *)d;
array_print_indent(depth);

Loading…
Cancel
Save