This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=c440e6db6a16a8bb0fed3eeebf87723664f271d5

commit c440e6db6a16a8bb0fed3eeebf87723664f271d5
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Jan 23 12:31:54 2024 +0100

    dpkg: Rename r variable for fd_read() return value to n
    
    We are interested in the amount read, not just the return code.
    
    Changelog: internal
---
 src/main/archives.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/archives.c b/src/main/archives.c
index b40d250a8..015bb23d1 100644
--- a/src/main/archives.c
+++ b/src/main/archives.c
@@ -273,12 +273,12 @@ int
 tarfileread(struct tar_archive *tar, char *buf, int len)
 {
   struct tarcontext *tc = (struct tarcontext *)tar->ctx;
-  int r;
+  int n;
 
-  r = fd_read(tc->backendpipe, buf, len);
-  if (r < 0)
+  n = fd_read(tc->backendpipe, buf, len);
+  if (n < 0)
     ohshite(_("error reading from dpkg-deb pipe"));
-  return r;
+  return n;
 }
 
 static void

-- 
Dpkg.Org's dpkg

Reply via email to