summaryrefslogtreecommitdiffstats
path: root/src/uca-cam.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 17:46:39 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 17:46:39 +0100
commit9088b328b51e685d424fd21817e8aab456d6ab24 (patch)
tree7194af15bd163f408daeb1232a4a1140b40c099d /src/uca-cam.c
parenta1e34e365b84d5a1c47dbcffa4141303533a55e7 (diff)
downloadlibuca-9088b328b51e685d424fd21817e8aab456d6ab24.tar.gz
libuca-9088b328b51e685d424fd21817e8aab456d6ab24.tar.bz2
libuca-9088b328b51e685d424fd21817e8aab456d6ab24.tar.xz
libuca-9088b328b51e685d424fd21817e8aab456d6ab24.zip
Fix all warnings issued by -Wall
Diffstat (limited to 'src/uca-cam.c')
-rw-r--r--src/uca-cam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uca-cam.c b/src/uca-cam.c
index 7e033fd..5d7741d 100644
--- a/src/uca-cam.c
+++ b/src/uca-cam.c
@@ -10,7 +10,8 @@ uint32_t uca_cam_alloc(struct uca_camera_t *cam, uint32_t n_buffers)
cam->get_property(cam, UCA_PROP_BITDEPTH, &bitdepth);
const int pixel_size = bitdepth == 8 ? 1 : 2;
if (cam->grabber != NULL)
- cam->grabber->alloc(cam->grabber, pixel_size, n_buffers);
+ return cam->grabber->alloc(cam->grabber, pixel_size, n_buffers);
+ return UCA_NO_ERROR;
}
enum uca_cam_state uca_cam_get_state(struct uca_camera_t *cam)