Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Patch to compil CVS driver with gcc-3.02
- To: linux-dvb@linuxtv.org
- Subject: [linux-dvb] Patch to compil CVS driver with gcc-3.02
- From: Gregoire Favre <greg@ulima.unil.ch>
- Date: Fri, 2 Nov 2001 14:17:49 +0100
- Content-Disposition: inline
- Content-Transfer-Encoding: 8bit
- Content-Type: text/plain; charset=iso-8859-1
- Delivered-To: mhonarc@limes.convergence.de
- Sender: linux-dvb-bounce@linuxtv.org
- User-Agent: Mutt/1.3.22.1i
Hello,
just a workaround to make it compil (I am now at work and haddn't tested
it, maybe it will explode your computer as I changed the way to handle
the firmware: use at your own risk)...
--- DVB-2001-11-01.orig/driver/fdump.cc Tue May 15 00:40:01 2001
+++ DVB-2001-11-01/driver/fdump.cc Fri Nov 2 13:08:39 2001
@@ -2,8 +2,13 @@
#include <fstream.h>
#include <iomanip.h>
+
void fdump(char *name)
{
+ using std::hex;
+ using std::setw;
+ using std::setfill;
+
unsigned char buf[16];
unsigned int i;
ifstream fin(name);
@@ -11,9 +16,9 @@
cout << "static unsigned char " << name << "[] __initdata = {";
while(fin) {
cout << "\n";
- fin.read(buf,16);
+ fin.read((char *)buf,16);
for (i=0;i<fin.gcount();i++) {
- cout << "0x" << hex << setw(2) << setfill((int) '0')
+ cout << "0x" << hex //<< setw(2) << setfill((int) '0')
<< (int) buf[i] << ",";
}
}
Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index