diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2014-04-11 20:15:34 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2014-04-11 20:15:34 +0000 |
commit | 7318557c352d818da699bc5328756c233c9c1060 (patch) | |
tree | cf2f2b41b0eceb2b1c56679c259871b976003ab5 /camlibs/sonydscf55 | |
parent | 73861f12036b5dfb912ca0214e6f574a0161c023 (diff) | |
download | libgphoto2-7318557c352d818da699bc5328756c233c9c1060.tar.gz |
iFrom: "Daniel P. Berrange" <dan@berrange.com>
Many calls of gp_port_* 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@14899 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/sonydscf55')
-rw-r--r-- | camlibs/sonydscf55/sony.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camlibs/sonydscf55/sony.c b/camlibs/sonydscf55/sony.c index 79c1121b4..e3e48c9b4 100644 --- a/camlibs/sonydscf55/sony.c +++ b/camlibs/sonydscf55/sony.c @@ -157,7 +157,7 @@ sony_baud_to_id(long baud) static int sony_read_byte(Camera * camera, unsigned char *b) { - int n = gp_port_read(camera->port, b, 1); + int n = gp_port_read(camera->port, (char *)b, 1); if (n != 1) return GP_ERROR; else @@ -316,7 +316,7 @@ sony_packet_write(Camera * camera, Packet * p) **/ usleep(10000); - rc = gp_port_write(camera->port, &START_PACKET, 1); + rc = gp_port_write(camera->port, (char *)&START_PACKET, 1); p->buffer[p->length] = p->checksum; |