aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
-rw-r--r--src/v4l.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 5b0b416..5b434e3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -17,7 +17,7 @@
static int ver = 0, max = 0, min;
static int half = 0, use_read = 0, buggery = 0;
static gchar *poopoo = NULL;
-static int x = -1, y = -1;
+static int x = 0, y = 0;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
diff --git a/src/v4l.c b/src/v4l.c
index 930d497..e9ce8f2 100644
--- a/src/v4l.c
+++ b/src/v4l.c
@@ -59,9 +59,9 @@ static int sort_func(const void *__b, const void *__a)
const struct resolutions *b = __b;
int r;
- r = b->x - a->x;
+ r = (int)b->x - a->x;
if (!r)
- r = b->y - a->y;
+ r = (int)b->y - a->y;
return r;
}
@@ -129,8 +129,8 @@ void camera_cap(cam_t *cam)
/* Query supported resolutions */
cam->rdir_ok = FALSE;
- cam->min_width = -1;
- cam->min_height = -1;
+ cam->min_width = (unsigned)-1;
+ cam->min_height = (unsigned)-1;
cam->max_width = 0;
cam->max_height = 0;
for (i = 0;; i++) {

Privacy Policy