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=271a1855f310e65b2f71a1b64a15578ec22341a2

commit 271a1855f310e65b2f71a1b64a15578ec22341a2
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Jan 23 12:28:49 2024 +0100

    dpkg-split: Rename r variable for strtoimax() return value to ret
    
    This contains the parsed integer, so «ret» is somewhat more descriptive
    than just «r».
    
    Changelog: internal
---
 src/split/info.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/split/info.c b/src/split/info.c
index 24c91d81d..7fe9a08dd 100644
--- a/src/split/info.c
+++ b/src/split/info.c
@@ -46,17 +46,18 @@
 static intmax_t
 parse_intmax(const char *value, const char *fn, const char *what)
 {
-  intmax_t r;
+  intmax_t ret;
   char *endp;
 
   errno = 0;
-  r = strtoimax(value, &endp, 10);
+  ret = strtoimax(value, &endp, 10);
   if (value == endp || *endp)
     ohshit(_("file '%.250s' is corrupt - bad digit (code %d) in %s"),
            fn, *endp, what);
-  if (r < 0 || errno == ERANGE)
+  if (ret < 0 || errno == ERANGE)
     ohshit(_("file '%s' is corrupt; out of range integer in %s"), fn, what);
-  return r;
+
+  return ret;
 }
 
 static char *nextline(char **ripp, const char *fn, const char *what) {

-- 
Dpkg.Org's dpkg

Reply via email to