diff options
Diffstat (limited to 'camlibs/minolta/dimagev/status.c')
-rw-r--r-- | camlibs/minolta/dimagev/status.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/camlibs/minolta/dimagev/status.c b/camlibs/minolta/dimagev/status.c index af5b58eb7..ffa3e1c51 100644 --- a/camlibs/minolta/dimagev/status.c +++ b/camlibs/minolta/dimagev/status.c @@ -47,11 +47,11 @@ int dimagev_get_camera_status(dimagev_t *dimagev) { return GP_ERROR_IO; } - if ( gp_port_write(dimagev->dev, p->buffer, p->length) < GP_OK ) { + if ( gp_port_write(dimagev->dev, (char *)p->buffer, p->length) < GP_OK ) { GP_DEBUG( "dimagev_get_camera_status::unable to write packet"); free(p); return GP_ERROR_IO; - } else if ( gp_port_read(dimagev->dev, &char_buffer, 1) < GP_OK ) { + } else if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { GP_DEBUG( "dimagev_get_camera_status::no response from camera"); free(p); return GP_ERROR_IO; @@ -80,13 +80,13 @@ int dimagev_get_camera_status(dimagev_t *dimagev) { } char_buffer = DIMAGEV_EOT; - if ( gp_port_write(dimagev->dev, &char_buffer, 1) < GP_OK ) { + if ( gp_port_write(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { GP_DEBUG( "dimagev_get_camera_status::unable to send EOT"); free(p); return GP_ERROR_IO; } - if ( gp_port_read(dimagev->dev, &char_buffer, 1) < GP_OK ) { + if ( gp_port_read(dimagev->dev, (char *)&char_buffer, 1) < GP_OK ) { GP_DEBUG( "dimagev_get_camera_status::no response from camera"); free(p); return GP_ERROR_IO; |