On Sun, Mar 11, 2001 at 12:48:01AM -0700, Jason Gunthorpe wrote: > > However, the change to the http method is rather nice, should have done > that to start with. There is also some code in apt-pkg/acquire-method that > could use this to considerable benifit too.
Attached is a patch to apt-pkg/acquire-method in a similar spirit. Log provides a prinf-style interface, so it still uses snprintf, but in other places ostringstream is used, and I added a Write method that handles the call to write. Also, uses of char* to iterate over string objects were fixed. I'm interested in hearing what you find worthwhile. I've also added a `using namespace std' after the #include lines; you'll probably want to add this to all modules at some point (looking ahead to g++ 3.0), but I don't know how you want to handle this. -Dan -- Dan Gohman [EMAIL PROTECTED]

