diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-05-28 14:59:08 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-28 08:16:37 -0700 |
commit | 22bfc4936fd587e166f0e212eeb388db41426fd7 (patch) | |
tree | 77e22d40463c273bef71a4b798ddafd4eb748d76 /ostctools.c | |
parent | e3215123d1d34f98bf72ded187ad9ee201db9789 (diff) | |
download | subsurface-22bfc4936fd587e166f0e212eeb388db41426fd7.tar.gz |
Add explicit casts to silence compiler warnings
clang complais when converting (char *) to (unsigned char *), so tell
it it's fine.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'ostctools.c')
-rw-r--r-- | ostctools.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ostctools.c b/ostctools.c index 68b7da01f..9e72453da 100644 --- a/ostctools.c +++ b/ostctools.c @@ -67,8 +67,8 @@ void ostctools_import(const char *file, struct dive_table *divetable) FILE *archive; device_data_t *devdata = calloc(1, sizeof(device_data_t)); dc_family_t dc_fam; - unsigned char *buffer = calloc(65536, 1), - *tmp; + unsigned char *buffer = calloc(65536, 1); + char *tmp; struct dive *ostcdive = alloc_dive(); dc_status_t rc = 0; int model = 0, i = 0; @@ -125,7 +125,7 @@ void ostctools_import(const char *file, struct dive_table *divetable) // a model number so will use 0. ostc_prepare_data(model, dc_fam, devdata); tmp = calloc(strlen(devdata->vendor)+strlen(devdata->model)+28,1); - sprintf(tmp,"%s %s (Imported from OSTCTools)", devdata->vendor, devdata->model); + sprintf(tmp, "%s %s (Imported from OSTCTools)", devdata->vendor, devdata->model); ostcdive->dc.model = copy_string(tmp); free(tmp); |