Fix compiler warnings.
authorFlorian Forster <ff@octo.it>
Fri, 10 Sep 2010 15:14:25 +0000 (17:14 +0200)
committerFlorian Forster <ff@octo.it>
Fri, 10 Sep 2010 15:14:25 +0000 (17:14 +0200)
src/data_provider.h
src/graph_ident.c
src/graph_ident.h
src/graph_list.c

index 30f3670..87025f2 100644 (file)
@@ -39,10 +39,10 @@ struct dp_data_point_s
 typedef struct dp_data_point_s dp_data_point_t;
 
 /* Callback passed to the "get_idents" function. */
 typedef struct dp_data_point_s dp_data_point_t;
 
 /* Callback passed to the "get_idents" function. */
-typedef int (*dp_get_idents_callback) (const graph_ident_t *, void *);
+typedef int (*dp_get_idents_callback) (graph_ident_t *, void *);
 
 /* Callback passed to the "get_ident_ds_names" function. */
 
 /* Callback passed to the "get_ident_ds_names" function. */
-typedef int (*dp_list_get_ident_ds_names_callback) (const graph_ident_t *,
+typedef int (*dp_list_get_ident_ds_names_callback) (graph_ident_t *,
     const char *ds_name, void *);
 
 /* Callback passed to the "get_ident_data" function. */
     const char *ds_name, void *);
 
 /* Callback passed to the "get_ident_data" function. */
index d16cb5b..7f37035 100644 (file)
@@ -580,7 +580,7 @@ static int ident_data_to_json__get_ident_data (
 } /* }}} int ident_data_to_json__get_ident_data */
 
 /* Called for each DS name */
 } /* }}} int ident_data_to_json__get_ident_data */
 
 /* Called for each DS name */
-static int ident_data_to_json__get_ds_name (const graph_ident_t *ident, /* {{{ */
+static int ident_data_to_json__get_ds_name (graph_ident_t *ident, /* {{{ */
     const char *ds_name, void *user_data)
 {
   ident_data_to_json__data_t *data = user_data;
     const char *ds_name, void *user_data)
 {
   ident_data_to_json__data_t *data = user_data;
@@ -605,7 +605,7 @@ static int ident_data_to_json__get_ds_name (const graph_ident_t *ident, /* {{{ *
   return (status);
 } /* }}} int ident_data_to_json__get_ds_name */
 
   return (status);
 } /* }}} int ident_data_to_json__get_ds_name */
 
-int ident_data_to_json (const graph_ident_t *ident, /* {{{ */
+int ident_data_to_json (graph_ident_t *ident, /* {{{ */
     dp_time_t begin, dp_time_t end,
     yajl_gen handler)
 {
     dp_time_t begin, dp_time_t end,
     yajl_gen handler)
 {
index 6d033b3..5f7b2d4 100644 (file)
@@ -92,7 +92,7 @@ char *ident_to_string (const graph_ident_t *ident);
 char *ident_to_file (const graph_ident_t *ident);
 int ident_to_json (const graph_ident_t *ident,
     yajl_gen handler);
 char *ident_to_file (const graph_ident_t *ident);
 int ident_to_json (const graph_ident_t *ident,
     yajl_gen handler);
-int ident_data_to_json (const graph_ident_t *ident,
+int ident_data_to_json (graph_ident_t *ident,
     dp_time_t begin, dp_time_t end,
     yajl_gen handler);
 
     dp_time_t begin, dp_time_t end,
     yajl_gen handler);
 
index d767ef9..b969d4c 100644 (file)
@@ -210,7 +210,7 @@ static int gl_register_file (const graph_ident_t *file, /* {{{ */
   return (0);
 } /* }}} int gl_register_file */
 
   return (0);
 } /* }}} int gl_register_file */
 
-static int gl_register_ident (const graph_ident_t *ident, /* {{{ */
+static int gl_register_ident (graph_ident_t *ident, /* {{{ */
     __attribute__((unused)) void *user_data)
 {
   /* TODO: Check for duplicates if multiple data providers are used. */
     __attribute__((unused)) void *user_data)
 {
   /* TODO: Check for duplicates if multiple data providers are used. */