Index: gnome-cups-manager-0.31/libgnomecups/snmpkit/snmpkit =================================================================== --- gnome-cups-manager-0.31.orig/libgnomecups/snmpkit/snmpkit +++ gnome-cups-manager-0.31/libgnomecups/snmpkit/snmpkit @@ -31,6 +31,7 @@ #include #include +#include #include #include #include Index: gnome-cups-manager-0.31/libgnomecups/snmpkit/structfill.C =================================================================== --- gnome-cups-manager-0.31.orig/libgnomecups/snmpkit/structfill.C +++ gnome-cups-manager-0.31/libgnomecups/snmpkit/structfill.C @@ -28,7 +28,8 @@ #include #include #include -#include +#include +#include #include #include "snmpkit" @@ -91,22 +92,22 @@ int SNMP_structFiller::fillStruct(OidSeq counters or large ints */ if(curber->type()==INT_TAG && cur->type==COUNTER_TAG) // these errors are minor enough and simple enough to fix - cerr << "Warning: Counter returned when Integer expected for " + std::cerr << "Warning: Counter returned when Integer expected for " << cur->oidstr << " Buggy firmware?\n"; else if(curber->type()==COUNTER_TAG && cur->type==INT_TAG) // these errors are minor enough and simple enough to fix - cerr << "Warning: Integer returned when Counter expected for " + std::cerr << "Warning: Integer returned when Counter expected for " << cur->oidstr << " Buggy firmware?\n"; else{ - ios::fmtflags opts=ios::hex; - opts=cerr.flags(opts); - cerr << "Warning: Printer returned a value of type 0x" + std::ios::fmtflags opts=std::ios::hex; + opts=std::cerr.flags(opts); + std::cerr << "Warning: Printer returned a value of type 0x" << static_cast(curber->type()) << " when a value of 0x" << static_cast(cur->type) << " was expected for " << cur->oidstr << " Buggy firmware? Skipping.\n"; - cerr.flags(opts); + std::cerr.flags(opts); retval=0; break; } @@ -177,7 +178,7 @@ void *SNMP_structFiller::get(void *tobef throw SNMPNoResponseException(); if(!fillStruct(retseq,(unsigned char*)tobefilled)){ - cerr << "Warning: printer did not respond with a value for one of the " + std::cerr << "Warning: printer did not respond with a value for one of the " << "OIDs. Buggy firmware?\n"; return NULL; }