diff options
-rw-r--r-- | dive.h | 2 | ||||
-rw-r--r-- | parse-xml.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -627,7 +627,7 @@ extern int parse_dm4_buffer(sqlite3 *handle, const char *url, const char *buf, i extern int parse_dm5_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table); extern int parse_shearwater_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table); extern int parse_cobalt_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table); -extern int parse_dlf_buffer(char *buffer, size_t size); +extern int parse_dlf_buffer(unsigned char *buffer, size_t size); extern int parse_file(const char *filename); extern int parse_csv_file(const char *filename, int time, int depth, int temp, int po2f, int cnsf, int ndlf, int ttsf, int stopdepthf, int pressuref, int sepidx, const char *csvtemplate, int units); diff --git a/parse-xml.c b/parse-xml.c index 3fb495885..a14c3e71f 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -2531,9 +2531,9 @@ int parse_cobalt_buffer(sqlite3 *handle, const char *url, const char *buffer, in return 0; } -int parse_dlf_buffer(char *buffer, size_t size) +int parse_dlf_buffer(unsigned char *buffer, size_t size) { - char *ptr = (char *)buffer; + unsigned char *ptr = buffer; bool event, found; int i; |