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=664e70136b6d654fd00098d8327c19598d0f3001

commit 664e70136b6d654fd00098d8327c19598d0f3001
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Oct 16 23:40:05 2022 +0200

    libdpkg: Rewrite fnis array variable definition
    
    Use designated initializers to make the assignments obvious.
---
 lib/dpkg/dbmodify.c | 29 ++++++++++++++++++++++-------
 1 file changed, 22 insertions(+), 7 deletions(-)

diff --git a/lib/dpkg/dbmodify.c b/lib/dpkg/dbmodify.c
index 125e7bdb9..a0436cc2d 100644
--- a/lib/dpkg/dbmodify.c
+++ b/lib/dpkg/dbmodify.c
@@ -152,13 +152,28 @@ static const struct fni {
   const char *suffix;
   char **store;
 } fnis[] = {
-  {   LOCKFILE,                   &lockfile           },
-  {   FRONTENDLOCKFILE,           &frontendlockfile   },
-  {   STATUSFILE,                 &statusfile         },
-  {   AVAILFILE,                  &availablefile      },
-  {   UPDATESDIR,                 &updatesdir         },
-  {   UPDATESDIR IMPORTANTTMP,    &importanttmpfile   },
-  {   NULL, NULL                                      }
+  {
+    .suffix = LOCKFILE,
+    .store = &lockfile,
+  }, {
+    .suffix = FRONTENDLOCKFILE,
+    .store = &frontendlockfile,
+  }, {
+    .suffix = STATUSFILE,
+    .store = &statusfile,
+  }, {
+    .suffix = AVAILFILE,
+    .store = &availablefile,
+  }, {
+    .suffix = UPDATESDIR,
+    .store = &updatesdir,
+  }, {
+    .suffix = UPDATESDIR IMPORTANTTMP,
+    .store = &importanttmpfile,
+  }, {
+    .suffix = NULL,
+    .store = NULL,
+  }
 };
 
 void

-- 
Dpkg.Org's dpkg

Reply via email to