[PATCH v5 01/15] yaml: Include stdlib.h instead of cstdlib

Laurent Pinchart laurent.pinchart at ideasonboard.com
Thu Dec 5 21:16:22 CET 2024


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 at redhat.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart at 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>

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list