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

fmt can't be const since we free it in the same function

Wichert Akkerman лет назад: 25
Родитель
Сommit
342cb40a87
2 измененных файлов с 5 добавлено и 1 удалено
  1. 4 0
      ChangeLog
  2. 1 1
      main/query.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+Wed Aug  1 15:10:06 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
+
+  * main/query.c: fmt can't be const since we free it in the same function
+
 Tue Jul 31 12:26:41 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
 
   * po/de.po: Updated

+ 1 - 1
main/query.c

@@ -380,7 +380,7 @@ void showpackages(const char *const *argv) {
   struct pkginfo **pkgl;
   const char *thisarg;
   int np, i, found;
-  const struct lstitem* fmt = parseformat(showformat);
+  struct lstitem* fmt = parseformat(showformat);
 
   if (!fmt) {
     nerrs++;