This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: v4l2-compliance: fix signed/unsigned comparison warnings.
Author:  Hans Verkuil <[email protected]>
Date:    Wed Jun 6 00:10:14 2012 +0200

Signed-off-by: Hans Verkuil <[email protected]>

 utils/v4l2-compliance/v4l2-test-formats.cpp      |   16 ++++++++--------
 utils/v4l2-compliance/v4l2-test-input-output.cpp |    2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=bdfe0796cbe9fa2f7e40e03eb0be48e327cb3bf1

diff --git a/utils/v4l2-compliance/v4l2-test-formats.cpp 
b/utils/v4l2-compliance/v4l2-test-formats.cpp
index f0dc608..c86c697 100644
--- a/utils/v4l2-compliance/v4l2-test-formats.cpp
+++ b/utils/v4l2-compliance/v4l2-test-formats.cpp
@@ -201,7 +201,7 @@ static int testEnumFrameSizes(struct node *node, __u32 
pixfmt)
        return 0;
 }
 
-static int testEnumFormatsType(struct node *node, enum v4l2_buf_type type)
+static int testEnumFormatsType(struct node *node, unsigned type)
 {
        pixfmt_set &set = node->buftype_pixfmts[type];
        struct v4l2_fmtdesc fmtdesc;
@@ -259,11 +259,11 @@ static int testEnumFormatsType(struct node *node, enum 
v4l2_buf_type type)
 int testEnumFormats(struct node *node)
 {
        bool supported = false;
-       int type;
+       unsigned type;
        int ret;
 
        for (type = 0; type <= V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; type++) {
-               ret = testEnumFormatsType(node, (enum v4l2_buf_type)type);
+               ret = testEnumFormatsType(node, type);
                if (ret && ret != ENOTTY)
                        return ret;
                if (!ret)
@@ -351,7 +351,7 @@ int testFBuf(struct node *node)
        return 0;
 }
 
-static int testFormatsType(struct node *node, enum v4l2_buf_type type)
+static int testFormatsType(struct node *node, unsigned type)
 {
        pixfmt_set &set = node->buftype_pixfmts[type];
        pixfmt_set *set_splane;
@@ -472,7 +472,7 @@ int testFormats(struct node *node)
        int ret;
 
        for (type = 0; type <= V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; type++) {
-               ret = testFormatsType(node, (enum v4l2_buf_type)type);
+               ret = testFormatsType(node, type);
 
                if (ret && ret != ENOTTY)
                        return ret;
@@ -496,7 +496,7 @@ int testFormats(struct node *node)
        return supported ? 0 : ENOTTY;
 }
 
-static int testSlicedVBICapType(struct node *node, enum v4l2_buf_type type)
+static int testSlicedVBICapType(struct node *node, unsigned type)
 {
        struct v4l2_sliced_vbi_cap cap;
        bool sliced_type = (type == V4L2_BUF_TYPE_SLICED_VBI_CAPTURE ||
@@ -588,7 +588,7 @@ static int testParmStruct(struct node *node, struct 
v4l2_streamparm &parm)
        return 0;
 }
 
-static int testParmType(struct node *node, enum v4l2_buf_type type)
+static int testParmType(struct node *node, unsigned type)
 {
        struct v4l2_streamparm parm;
        int ret;
@@ -625,7 +625,7 @@ int testParm(struct node *node)
        int ret;
 
        for (type = 0; type <= V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; type++) {
-               ret = testParmType(node, (enum v4l2_buf_type)type);
+               ret = testParmType(node, type);
 
                if (ret && ret != ENOTTY)
                        return ret;
diff --git a/utils/v4l2-compliance/v4l2-test-input-output.cpp 
b/utils/v4l2-compliance/v4l2-test-input-output.cpp
index ba7c429..d9ae1f7 100644
--- a/utils/v4l2-compliance/v4l2-test-input-output.cpp
+++ b/utils/v4l2-compliance/v4l2-test-input-output.cpp
@@ -38,7 +38,7 @@ static int checkTuner(struct node *node, const struct 
v4l2_tuner &tuner,
 {
        bool valid_modes[5] = { true, false, false, false, false };
        bool tv = !node->is_radio;
-       enum v4l2_tuner_type type = tv ? V4L2_TUNER_ANALOG_TV : 
V4L2_TUNER_RADIO;
+       unsigned type = tv ? V4L2_TUNER_ANALOG_TV : V4L2_TUNER_RADIO;
        __u32 audmode;
 
        if (tuner.index != t)

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to