diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-12-28 23:38:41 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-28 20:19:19 -0800 |
commit | e86d298734ce76b9c66cc57dca68919fffb68789 (patch) | |
tree | 8d192e23eb3544a5c08f3d60e4069774d67c6e14 | |
parent | 78d782f3e9a30aa8080e4e8ffb90e1fc5aa8050d (diff) | |
download | subsurface-e86d298734ce76b9c66cc57dca68919fffb68789.tar.gz |
Switch to using unsigned char in DLF import
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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; |