* [PATCH] tools: change print to %zd for ssize_t
@ 2022-02-24 17:12 James Prestwood
0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2022-02-24 17:12 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
iwd-decrypt-profile was using %ld which isn't portable.
---
tools/iwd-decrypt-profile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/iwd-decrypt-profile.c b/tools/iwd-decrypt-profile.c
index e660c346..e71b56b4 100644
--- a/tools/iwd-decrypt-profile.c
+++ b/tools/iwd-decrypt-profile.c
@@ -196,7 +196,7 @@ int main(int argc, char *argv[])
close(fd);
if (len < 0) {
- printf("Unable to write to %s (%ld)\n", outfile, len);
+ printf("Unable to write to %s (%zd)\n", outfile, len);
goto failed;
}
}
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tools: change print to %zd for ssize_t
@ 2022-02-24 18:15 Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-02-24 18:15 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 256 bytes --]
Hi James,
On 2/24/22 11:12, James Prestwood wrote:
> iwd-decrypt-profile was using %ld which isn't portable.
> ---
> tools/iwd-decrypt-profile.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-24 18:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-24 18:15 [PATCH] tools: change print to %zd for ssize_t Denis Kenzior
-- strict thread matches above, loose matches on Subject: below --
2022-02-24 17:12 James Prestwood
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.