]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/install-progress.cc
remove duplication in pkgCdrom::Add and ::Ident
[apt.git] / apt-pkg / install-progress.cc
index bfc00bd063bed5196a7c57ffa24c5945c6b6b04d..a3a4cc0e1d282d6b7903af592a6fe4ebc272b53a 100644 (file)
@@ -10,6 +10,7 @@
 #include <sstream>
 #include <fcntl.h>
 #include <algorithm>
+#include <stdio.h>
 
 namespace APT {
 namespace Progress {
@@ -241,7 +242,7 @@ PackageManagerFancy::~PackageManagerFancy()
 void PackageManagerFancy::staticSIGWINCH(int signum)
 {
    std::vector<PackageManagerFancy *>::const_iterator I;
-   for(I = instances.begin(); I != instances.end(); I++)
+   for(I = instances.begin(); I != instances.end(); ++I)
       (*I)->HandleSIGWINCH(signum);
 }
 
@@ -300,9 +301,7 @@ void PackageManagerFancy::Start(int a_child_pty)
    child_pty = a_child_pty;
    int nr_terminal_rows = GetNumberTerminalRows();
    if (nr_terminal_rows > 0)
-   {
       SetupTerminalScrollArea(nr_terminal_rows);
-   }
 }
 
 void PackageManagerFancy::Stop()