[v5,01/15] yaml: Include stdlib.h instead of cstdlib
diff mbox series

Message ID 20241001102810.479285-2-mzamazal@redhat.com
State Superseded
Headers show
Series
  • Add global configuration file
Related show

Commit Message

Milan Zamazal Oct. 1, 2024, 10:27 a.m. UTC
checkstyle.py will complain about cstdlib include, let's use stdlib.h instead.

Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
---
 src/libcamera/yaml_parser.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart Dec. 5, 2024, 8:16 p.m. UTC | #1
Hi Milan,

Thank you for the patch.

On Tue, Oct 01, 2024 at 12:27:53PM +0200, Milan Zamazal wrote:
> checkstyle.py will complain about cstdlib include, let's use stdlib.h instead.
> 
> Signed-off-by: Milan Zamazal <mzamazal@redhat.com>

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

> ---
>  src/libcamera/yaml_parser.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/libcamera/yaml_parser.cpp b/src/libcamera/yaml_parser.cpp
> index 4784f2dc3..d0f3df5f3 100644
> --- a/src/libcamera/yaml_parser.cpp
> +++ b/src/libcamera/yaml_parser.cpp
> @@ -7,10 +7,10 @@
>  
>  #include "libcamera/internal/yaml_parser.h"
>  
> -#include <cstdlib>
>  #include <errno.h>
>  #include <functional>
>  #include <limits>
> +#include <stdlib.h>
>  
>  #include <libcamera/base/file.h>
>  #include <libcamera/base/log.h>

Patch
diff mbox series

diff --git a/src/libcamera/yaml_parser.cpp b/src/libcamera/yaml_parser.cpp
index 4784f2dc3..d0f3df5f3 100644
--- a/src/libcamera/yaml_parser.cpp
+++ b/src/libcamera/yaml_parser.cpp
@@ -7,10 +7,10 @@ 
 
 #include "libcamera/internal/yaml_parser.h"
 
-#include <cstdlib>
 #include <errno.h>
 #include <functional>
 #include <limits>
+#include <stdlib.h>
 
 #include <libcamera/base/file.h>
 #include <libcamera/base/log.h>