[PATCH 9/9] shell: Replace ptrdiff_t with intptr_t
Steve Capper
steve.capper at arm.com
Mon Apr 4 10:50:02 UTC 2022
From: Vincenzo Frascino <vincenzo.frascino at arm.com>
The use of ptrdiff_t can trigger a warning.
Replace it with intptr_t that does not require provenance since being an
integer is always valid.
Signed-off-by: Vincenzo Frascino <vincenzo.frascino at arm.com>
Reviewed-by: Steve Capper <steve.capper at arm.com>
Signed-off-by: Steve Capper <steve.capper at arm.com>
---
shell/ash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/ash.c b/shell/ash.c
index ef4a47afe..c48e878e1 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -4739,7 +4739,7 @@ static struct job *
growjobtab(void)
{
size_t len;
- ptrdiff_t offset;
+ intptr_t offset;
struct job *jp, *jq;
len = njobs * sizeof(*jp);
--
2.35.1
More information about the busybox
mailing list