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=6806da227bbf9a2480eec9b8dccc81e7d0150530

commit 6806da227bbf9a2480eec9b8dccc81e7d0150530
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Mar 21 23:10:09 2022 +0100

    dpkg: Rename r variable to remainder
    
    The variable name r is not very descriptive, and it has been used as a
    short hand for return value. Use a better name instead.
    
    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 92340b936..a9dd28429 100644
--- a/src/main/archives.c
+++ b/src/main/archives.c
@@ -280,13 +280,13 @@ static void
 tarobject_skip_padding(struct tarcontext *tc, struct tar_entry *te)
 {
   struct dpkg_error err;
-  size_t r;
+  size_t remainder;
 
-  r = te->size % TARBLKSZ;
-  if (r == 0)
+  remainder = te->size % TARBLKSZ;
+  if (remainder == 0)
     return;
 
-  if (fd_skip(tc->backendpipe, TARBLKSZ - r, &err) < 0)
+  if (fd_skip(tc->backendpipe, TARBLKSZ - remainder, &err) < 0)
     ohshit(_("cannot skip padding for file '%.255s': %s"), te->name, err.str);
 }
 

-- 
Dpkg.Org's dpkg

Reply via email to