char cannot hold the return value of getopt()

This commit is contained in:
naddy 2018-04-25 20:55:22 +00:00
parent a882d384c4
commit 8b6e27d943
4 changed files with 44 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.44 2017/11/16 18:39:25 naddy Exp $
# $OpenBSD: Makefile,v 1.45 2018/04/25 20:55:22 naddy Exp $
COMMENT= tools to edit/modify/encode video streams
DISTNAME= mjpegtools-2.0.0
REVISION= 7
REVISION= 8
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mjpeg/}

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-lavtools_lavpipe_c,v 1.1 2018/04/25 20:55:22 naddy Exp $
Index: lavtools/lavpipe.c
--- lavtools/lavpipe.c.orig
+++ lavtools/lavpipe.c
@@ -540,7 +540,7 @@ KEEP_SOURCE: ;
static
void parse_command_line(int argc, char *argv[], commandline_params_t *cl)
{
- char c;
+ int c;
int err;
cl->verbose = 1;

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-y4mdenoise_main_c,v 1.1 2018/04/25 20:55:22 naddy Exp $
Index: y4mdenoise/main.c
--- y4mdenoise/main.c.orig
+++ y4mdenoise/main.c
@@ -274,7 +274,7 @@ int main(int argc, char *argv[])
void
process_commandline(int argc, char *argv[])
{
- char c;
+ int c;
while ((c = getopt (argc, argv, "h?z:Z:t:T:r:R:m:M:f:BI:p:v:")) != -1)
{

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-yuvdeinterlace_yuvdeinterlace_cc,v 1.1 2018/04/25 20:55:22 naddy Exp $
Index: yuvdeinterlace/yuvdeinterlace.cc
--- yuvdeinterlace/yuvdeinterlace.cc.orig
+++ yuvdeinterlace/yuvdeinterlace.cc
@@ -923,7 +923,7 @@ main (int argc, char *argv[])
deinterlacer YUVdeint;
- char c;
+ int c;
YUVdeint.field_order = -1;