diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2014-04-11 20:18:36 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2014-04-11 20:18:36 +0000 |
commit | 292d2f69aa9846a2d24dafb0263828e8806f34c7 (patch) | |
tree | 16d2b6363518b107fb1c0f30f2fd1376aaa24ea1 /camlibs/samsung | |
parent | 7318557c352d818da699bc5328756c233c9c1060 (diff) | |
download | libgphoto2-292d2f69aa9846a2d24dafb0263828e8806f34c7.tar.gz |
From: "Daniel P. Berrange" <dan@berrange.com>
Many calls of gp_file_* functions are passing a 'unsigned char *'
rather than the 'char *' they expect. Add explicit casts to
silence the compiler.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14900 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/samsung')
-rw-r--r-- | camlibs/samsung/samsung.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/samsung/samsung.c b/camlibs/samsung/samsung.c index 7fc2c648b..8fcd30388 100644 --- a/camlibs/samsung/samsung.c +++ b/camlibs/samsung/samsung.c @@ -222,7 +222,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, break; if (result < 0) return result; - gp_file_append(file,buffer,SDSC_BLOCKSIZE); + gp_file_append(file,(char *)buffer,SDSC_BLOCKSIZE); curread += SDSC_BLOCKSIZE; gp_context_progress_update(context, pid, curread); if (gp_context_cancel(context) == GP_CONTEXT_FEEDBACK_CANCEL) |