Skip to contentSkip to conversation

tools: use 'unsigned int' instead of 'uint'

PATCH In review Bartosz Golaszewski 2 participants 2 messages Feb 9, 2023 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: use 'unsigned int' instead of 'uint'

From: Bartosz Golaszewski <[email protected]>

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")
---
 tools/tools-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/tools-common.h +1 -1
index efbeeb8..5d39170 100644
@@ -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;
Signature · 1 line
2.37.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 27 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

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")
---
 tools/tools-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/tools-common.h +1 -1
index efbeeb8..5d39170 100644
@@ -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;
Signature · 1 line
2.37.2

Oops, my bad.