diff mbox

[media-ctl] Add missing stdlib.h and ctype.h includes

Message ID 20130218001244.GA7932@amos.fritz.box (mailing list archive)
State New, archived
Headers show

Commit Message

Andreas Bombe Feb. 18, 2013, 12:12 a.m. UTC
src/mediactl.c needs ctype.h for its use of isspace().

src/v4l2subdev.c needs stdlib.h for strtoul() and ctype.h for isspace()
and isupper().

Signed-off-by: Andreas Bombe <aeb@debian.org>
---
 src/mediactl.c   |    1 +
 src/v4l2subdev.c |    2 ++
 2 files changed, 3 insertions(+)

Comments

Laurent Pinchart March 25, 2013, 10:05 p.m. UTC | #1
Hi Andreas,

Thanks for the patch, and sorry for the late reply.

On Monday 18 February 2013 01:12:44 Andreas Bombe wrote:
> src/mediactl.c needs ctype.h for its use of isspace().
> 
> src/v4l2subdev.c needs stdlib.h for strtoul() and ctype.h for isspace()
> and isupper().
> 
> Signed-off-by: Andreas Bombe <aeb@debian.org>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

and pushed to the repository.

> ---
>  src/mediactl.c   |    1 +
>  src/v4l2subdev.c |    2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/src/mediactl.c b/src/mediactl.c
> index 46562de..c2f985a 100644
> --- a/src/mediactl.c
> +++ b/src/mediactl.c
> @@ -29,6 +29,7 @@
>  #include <stdbool.h>
>  #include <stdio.h>
>  #include <stdlib.h>
> +#include <ctype.h>
>  #include <string.h>
>  #include <fcntl.h>
>  #include <errno.h>
> diff --git a/src/v4l2subdev.c b/src/v4l2subdev.c
> index d0c37f3..87d7eb7 100644
> --- a/src/v4l2subdev.c
> +++ b/src/v4l2subdev.c
> @@ -26,6 +26,8 @@
>  #include <errno.h>
>  #include <fcntl.h>
>  #include <stdbool.h>
> +#include <stdlib.h>
> +#include <ctype.h>
>  #include <stdio.h>
>  #include <string.h>
>  #include <unistd.h>
diff mbox

Patch

diff --git a/src/mediactl.c b/src/mediactl.c
index 46562de..c2f985a 100644
--- a/src/mediactl.c
+++ b/src/mediactl.c
@@ -29,6 +29,7 @@ 
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <ctype.h>
 #include <string.h>
 #include <fcntl.h>
 #include <errno.h>
diff --git a/src/v4l2subdev.c b/src/v4l2subdev.c
index d0c37f3..87d7eb7 100644
--- a/src/v4l2subdev.c
+++ b/src/v4l2subdev.c
@@ -26,6 +26,8 @@ 
 #include <errno.h>
 #include <fcntl.h>
 #include <stdbool.h>
+#include <stdlib.h>
+#include <ctype.h>
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>