diff mbox series

[libgpiod] tools: use 'unsigned int' instead of 'uint'

Message ID 20230209185312.635613-1-brgl@bgdev.pl
State New
Headers show
Series [libgpiod] tools: use 'unsigned int' instead of 'uint' | expand

Commit Message

Bartosz Golaszewski Feb. 9, 2023, 6:53 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

uint is an old compatibility name that GCC still provides but clang
doesn't. Use unsigned int instead.

Fixes: 8ffb6489286f ("tools: line name focussed rework")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 tools/tools-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kent Gibson Feb. 9, 2023, 11:47 p.m. UTC | #1
On Thu, Feb 09, 2023 at 07:53:12PM +0100, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> 
> uint is an old compatibility name that GCC still provides but clang
> doesn't. Use unsigned int instead.
> 
> Fixes: 8ffb6489286f ("tools: line name focussed rework")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
>  tools/tools-common.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/tools-common.h b/tools/tools-common.h
> index efbeeb8..5d39170 100644
> --- a/tools/tools-common.h
> +++ b/tools/tools-common.h
> @@ -43,7 +43,7 @@ struct resolved_line {
>  	int chip_num;
>  
>  	/* offset of line on chip */
> -	uint offset;
> +	unsigned int offset;
>  
>  	/* line value for gpioget/set */
>  	int value;
> -- 
> 2.37.2
> 

Oops, my bad.

Reviewed-by: Kent Gibson <warthog618@gmail.com>
diff mbox series

Patch

diff --git a/tools/tools-common.h b/tools/tools-common.h
index efbeeb8..5d39170 100644
--- a/tools/tools-common.h
+++ b/tools/tools-common.h
@@ -43,7 +43,7 @@  struct resolved_line {
 	int chip_num;
 
 	/* offset of line on chip */
-	uint offset;
+	unsigned int offset;
 
 	/* line value for gpioget/set */
 	int value;