From 292d2f69aa9846a2d24dafb0263828e8806f34c7 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 11 Apr 2014 20:18:36 +0000 Subject: From: "Daniel P. Berrange" 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 --- camlibs/spca50x/library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camlibs/spca50x') 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 -- cgit v1.2.1