Explorar o código

libdpkg: Switch ‘obsolete’ variable to be a bool in f_conffiles()

Guillem Jover %!s(int64=15) %!d(string=hai) anos
pai
achega
4100cc474b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lib/dpkg/fields.c

+ 2 - 1
lib/dpkg/fields.c

@@ -275,7 +275,8 @@ f_conffiles(struct pkginfo *pigp, struct pkgbin *pifp,
   static const char obsolete_str[]= "obsolete";
   static const char obsolete_str[]= "obsolete";
   struct conffile **lastp, *newlink;
   struct conffile **lastp, *newlink;
   const char *endent, *endfn, *hashstart;
   const char *endent, *endfn, *hashstart;
-  int c, namelen, hashlen, obsolete;
+  int c, namelen, hashlen;
+  bool obsolete;
   char *newptr;
   char *newptr;
 
 
   lastp= &pifp->conffiles;
   lastp= &pifp->conffiles;