[aravis] buffer: don't return a value on a void function
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] buffer: don't return a value on a void function
- Date: Mon, 3 Nov 2014 15:01:03 +0000 (UTC)
commit 751e4250bc026f9d773ac5b69eaa9028224c3793
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Mon Nov 3 16:00:24 2014 +0100
buffer: don't return a value on a void function
src/arvbuffer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/arvbuffer.c b/src/arvbuffer.c
index 34306b5..49684ae 100644
--- a/src/arvbuffer.c
+++ b/src/arvbuffer.c
@@ -351,8 +351,8 @@ arv_buffer_get_frame_id (ArvBuffer *buffer)
void
arv_buffer_get_image_region (ArvBuffer *buffer, gint *x, gint *y, gint *width, gint *height)
{
- g_return_val_if_fail (ARV_IS_BUFFER (buffer), 0);
- g_return_val_if_fail (buffer->priv->gvsp_payload_type == ARV_GVSP_PAYLOAD_TYPE_IMAGE, 0);
+ g_return_if_fail (ARV_IS_BUFFER (buffer));
+ g_return_if_fail (buffer->priv->gvsp_payload_type == ARV_GVSP_PAYLOAD_TYPE_IMAGE);
if (x != NULL)
*x = buffer->priv->x_offset;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]