diff --git a/camlibs/kodak/dc120/dc120.c b/camlibs/kodak/dc120/dc120.c index 0e8891c2a..d00ec01fb 100644 --- a/camlibs/kodak/dc120/dc120.c +++ b/camlibs/kodak/dc120/dc120.c @@ -286,7 +286,7 @@ static int camera_capture (Camera *camera, CameraCaptureType type, CameraFilePat int count; const char* name; - if (type != GP_OPERATION_CAPTURE_IMAGE) + if (type != GP_CAPTURE_IMAGE) return (GP_ERROR_NOT_SUPPORTED); /* capture a image to flash (note: we do not check if full */ diff --git a/camlibs/kodak/dc120/library.c b/camlibs/kodak/dc120/library.c index 9216e9766..4f7167b2c 100644 --- a/camlibs/kodak/dc120/library.c +++ b/camlibs/kodak/dc120/library.c @@ -285,10 +285,10 @@ int dc120_get_status (Camera *camera, Kodak_dc120_status *status, GPContext *con if( retval == (GP_OK) && status != NULL ) { const char *data; - long int size; + long int lsize; - gp_file_get_data_and_size( file, &data, &size ); - if( size<122 ) { + gp_file_get_data_and_size( file, &data, &lsize ); + if( lsize<122 ) { gp_file_free (file); free (p); return (GP_ERROR);