* [media-ctl PATCH] Add missing stdlib.h and ctype.h includes
@ 2013-02-18 0:12 Andreas Bombe
2013-03-25 22:05 ` Laurent Pinchart
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Bombe @ 2013-02-18 0:12 UTC (permalink / raw)
To: linux-media; +Cc: Laurent Pinchart
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(+)
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>
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [media-ctl PATCH] Add missing stdlib.h and ctype.h includes
2013-02-18 0:12 [media-ctl PATCH] Add missing stdlib.h and ctype.h includes Andreas Bombe
@ 2013-03-25 22:05 ` Laurent Pinchart
0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pinchart @ 2013-03-25 22:05 UTC (permalink / raw)
To: Andreas Bombe; +Cc: linux-media
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>
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-25 22:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-18 0:12 [media-ctl PATCH] Add missing stdlib.h and ctype.h includes Andreas Bombe
2013-03-25 22:05 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).