summaryrefslogtreecommitdiffstats
path: root/collection/collection_tools.c
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-04-06 21:00:59 -0400
committerSimo Sorce <ssorce@redhat.com>2009-04-07 14:26:24 -0400
commitcfde3e8b06ff4939ebf2f8c03c0cbc17f1efd725 (patch)
tree33b62ce6a285d316fd923f38654bd67f879c0743 /collection/collection_tools.c
parenta84aa16112043031d7157704323cb8a6c2dc0764 (diff)
downloadding-libs-cfde3e8b06ff4939ebf2f8c03c0cbc17f1efd725.tar.gz
ding-libs-cfde3e8b06ff4939ebf2f8c03c0cbc17f1efd725.tar.xz
ding-libs-cfde3e8b06ff4939ebf2f8c03c0cbc17f1efd725.zip
Fix const warnings
Diffstat (limited to 'collection/collection_tools.c')
-rw-r--r--collection/collection_tools.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/collection/collection_tools.c b/collection/collection_tools.c
index 63c0376..cefe7ae 100644
--- a/collection/collection_tools.c
+++ b/collection/collection_tools.c
@@ -30,7 +30,7 @@
#include "collection_tools.h"
/* Debug handle */
-int debug_handle(char *property,
+int debug_handle(const char *property,
int property_len,
int type,
void *data,
@@ -319,7 +319,7 @@ int grow_buffer(struct serial_data *buf_data, int len)
}
/* Specail function to add different formatting symbols to the output */
-int put_marker(struct serial_data *buf_data, void *data, int len)
+int put_marker(struct serial_data *buf_data, const void *data, int len)
{
int error = EOK;
@@ -340,7 +340,7 @@ int put_marker(struct serial_data *buf_data, void *data, int len)
}
/* Add item's data */
-int serialize(char *property_in,
+int serialize(const char *property_in,
int property_len_in,
int type,
void *data_in,
@@ -350,8 +350,8 @@ int serialize(char *property_in,
{
int len;
struct serial_data *buf_data;
- char *property;
- void *data;
+ const char *property;
+ const void *data;
int property_len;
int length;
int error = EOK;