diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2007-10-02 09:33:32 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2007-10-02 09:33:32 -0300 |
commit | 71afbdb50df4058a56ed567f03c9a82f5f9d130e (patch) | |
tree | 339f408f5fb360cf725ab42c5dab9b28834e62da /apt-pkg/deb/dpkgpm.cc | |
parent | 9504f6f95ba38205551275f94069799ce8683657 (diff) |
- apt-pkg/deb/dpkgpm.cc: initialization order and conversion from
string constant to 'char*';
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index b92d0118c..92f96620f 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -44,8 +44,8 @@ using namespace std; // --------------------------------------------------------------------- /* */ pkgDPkgPM::pkgDPkgPM(pkgDepCache *Cache) - : pkgPackageManager(Cache), dpkgbuf_pos(0), PackagesDone(0), - PackagesTotal(0), term_out(NULL) + : pkgPackageManager(Cache), dpkgbuf_pos(0), + term_out(NULL), PackagesDone(0), PackagesTotal(0) { } /*}}}*/ @@ -770,7 +770,7 @@ bool pkgDPkgPM::Go(int OutStatusFd) /* No Job Control Stop Env is a magic dpkg var that prevents it from using sigstop */ - putenv("DPKG_NO_TSTP=yes"); + putenv((char *)"DPKG_NO_TSTP=yes"); execvp(Args[0],(char **)Args); cerr << "Could not exec dpkg!" << endl; _exit(100); |