X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Fvcheck.cc;h=bd0c5bf8770f758349d0739000a7a14a8b7a43df;hb=a917f24ef7b003dcef54a3db2644cf9cb4bc2db2;hp=b2ff6e47f2ba91c475526fb98e4ecbcdb62d4efa;hpb=da691fd4bad5e187b307b7fd86bf5fd61e47c3fc;p=util-vserver.git diff --git a/util-vserver/src/vcheck.cc b/util-vserver/src/vcheck.cc index b2ff6e4..bd0c5bf 100644 --- a/util-vserver/src/vcheck.cc +++ b/util-vserver/src/vcheck.cc @@ -23,6 +23,10 @@ goal of this program is to run the rpm verify command, but using the RPM database of the first vserver. */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include #include @@ -55,7 +59,7 @@ static void usage() ; } -typedef list PACKAGES; +typedef list PACKAGES; /* Delete a directory silently @@ -134,7 +138,7 @@ static int vcheck_copydb (const string &refserv, const string &path) class cmp_name{ public: - int operator()(const PACKAGE &p1, const PACKAGE &p2){ + int operator()(const Package &p1, const Package &p2){ return strcmp(p1.name.c_str(),p2.name.c_str()); } }; @@ -181,8 +185,8 @@ int main (int argc, char *argv[]) common.push_back (*it); } } - for (list::iterator it=chkpkgs.begin(); it!=chkpkgs.end(); it++){ - list::iterator f = find_if(refpkgs.begin(),refpkgs.end(),same_name(*it)); + for (list::iterator it=chkpkgs.begin(); it!=chkpkgs.end(); it++){ + list::iterator f = find_if(refpkgs.begin(),refpkgs.end(),same_name(*it)); if (f == refpkgs.end()){ added.push_back (*it); }