Просмотр исходного кода

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

Guillem Jover лет назад: 15
Родитель
Сommit
4100cc474b
1 измененных файлов с 2 добавлено и 1 удалено
  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";
   struct conffile **lastp, *newlink;
   const char *endent, *endfn, *hashstart;
-  int c, namelen, hashlen, obsolete;
+  int c, namelen, hashlen;
+  bool obsolete;
   char *newptr;
 
   lastp= &pifp->conffiles;