summaryrefslogtreecommitdiff
path: root/camlibs/spca50x
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2014-04-11 20:18:36 +0000
committerMarcus Meissner <marcus@jet.franken.de>2014-04-11 20:18:36 +0000
commit292d2f69aa9846a2d24dafb0263828e8806f34c7 (patch)
tree16d2b6363518b107fb1c0f30f2fd1376aaa24ea1 /camlibs/spca50x
parent7318557c352d818da699bc5328756c233c9c1060 (diff)
downloadlibgphoto2-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/spca50x')
-rw-r--r--camlibs/spca50x/library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/spca50x/library.c b/camlibs/spca50x/library.c
index 3d69e0bfb..31a993b19 100644
--- a/camlibs/spca50x/library.c
+++ b/camlibs/spca50x/library.c
@@ -409,7 +409,7 @@ get_file_func (CameraFilesystem *fs, const char *folder,
}
if (!data)
return GP_ERROR;
- return gp_file_set_data_and_size (file, data, size);
+ return gp_file_set_data_and_size (file, (char *)data, size);
}
static int