Code

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 30f36703a78e497985e52f77c1dc6a0a36727cc3..87025f21ad31019c4b4c9218739f19e1f531d70c 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 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. */
-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. */
index d16cb5b427e95bc5107c5d036759f004c11d54f9..7f37035512c273c60df0d3356e40f4869c3e158d 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 */
-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;
@@ -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 */
 
-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)
 {
index 6d033b328ff098273c18ecaeeaab92eedbdfce1d..5f7b2d45aedcb9d9bf6ac03fb475950412c9e369 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);
-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);
 
index d767ef945585198691fd737c2d2de5c750f5eb9b..b969d4ce2481a794e83997a5f8c7207bac0c6787 100644 (file)
@@ -210,7 +210,7 @@ static int gl_register_file (const graph_ident_t *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. */