From 0fb77250000195d2f9b55ea43964236b64d0ed89 Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Thu, 2 Jul 2015 16:25:15 -0400 Subject: [PATCH 1/2] Drop unused includes from jpegyuv and yuvjpeg --- jpegyuv.c | 3 --- yuvjpeg.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/jpegyuv.c b/jpegyuv.c index 9375568c..1366b3c4 100644 --- a/jpegyuv.c +++ b/jpegyuv.c @@ -35,9 +35,6 @@ #include #include -#include -#include -#include #include #include "jpeglib.h" diff --git a/yuvjpeg.c b/yuvjpeg.c index b21683c5..f8b728b0 100644 --- a/yuvjpeg.c +++ b/yuvjpeg.c @@ -34,8 +34,6 @@ #include #include -#include -#include #include #include From 0f87064d266897af8a39fa764958ea3407b1937e Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Thu, 2 Jul 2015 16:30:32 -0400 Subject: [PATCH 2/2] jpegyuv: drop write-only errno --- jpegyuv.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/jpegyuv.c b/jpegyuv.c index 1366b3c4..171774f7 100644 --- a/jpegyuv.c +++ b/jpegyuv.c @@ -33,7 +33,6 @@ /* gcc -std=c99 jpegyuv.c -I/opt/local/include/ -L/opt/local/lib/ -ljpeg -o jpegyuv */ -#include #include #include @@ -68,8 +67,6 @@ int main(int argc, char *argv[]) { return 1; } - errno = 0; - /* Will check these for validity when opening via 'fopen'. */ jpg_path = argv[1]; yuv_path = argv[2];