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

guillem pushed a commit to branch master
in repository dpkg.

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

commit 9e5750015bd6187c8612380015924b82ad6739ac
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Nov 18 05:32:19 2018 +0100

    libdpkg: Rename ret variable to next
---
 debian/changelog     | 1 +
 lib/dpkg/fsys-iter.c | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 100195c75..3decd20dd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -112,6 +112,7 @@ dpkg (1.19.3) UNRELEASED; urgency=medium
     - When allocating use the variable instead of the type in sizeof().
     - dselect: Rename variable r to pkgbin.
     - libdpkg, dpkg: Rename r variables to fnn.
+    - libdpkg: Rename ret variable to next.
   * Build system:
     - get-version: Use a format string with printf.
     - run-script: Use $() instead of deprecated ``.
diff --git a/lib/dpkg/fsys-iter.c b/lib/dpkg/fsys-iter.c
index fb47197ef..a5aa48be5 100644
--- a/lib/dpkg/fsys-iter.c
+++ b/lib/dpkg/fsys-iter.c
@@ -60,17 +60,17 @@ reversefilelist_init(struct reversefilelistiter *iter,
 struct filenamenode *
 reversefilelist_next(struct reversefilelistiter *iter)
 {
-       struct filenamenode *ret;
+       struct filenamenode *next;
        struct fileinlist *todo;
 
        todo = iter->todo;
        if (!todo)
                return NULL;
-       ret = todo->namenode;
+       next = todo->namenode;
        iter->todo = todo->next;
        free(todo);
 
-       return ret;
+       return next;
 }
 
 /*

-- 
Dpkg.Org's dpkg

Reply via email to