Hi,
Naturally, I forgot the diff. :)
Thanks,
Matej
diff -u libxbox-0.1/debian/changelog libxbox-0.1/debian/changelog
--- libxbox-0.1/debian/changelog
+++ libxbox-0.1/debian/changelog
@@ -1,3 +1,10 @@
+libxbox (0.1-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * libxbox-i2c.c: Fix fatal warnings with gcc 4.0. Closes: #318548.
+
+ -- Matej Vela <[EMAIL PROTECTED]> Sun, 29 Jan 2006 13:55:42 +0100
+
libxbox (0.1-1) unstable; urgency=low
* Initial Release. (Closes #285617)
only in patch2:
unchanged:
--- libxbox-0.1.orig/libxbox-i2c.c
+++ libxbox-0.1/libxbox-i2c.c
@@ -116,11 +116,11 @@
//Thermal mgmt functions
//=============================================================================
bool xbox_temperatures(unsigned int *cpu, unsigned int *mcpx) {
- return (xbox_smc_read(CPU_TEMP_REG, (char*)cpu) &&
xbox_smc_read(MCPX_TEMP_REG, (char*)mcpx));
+ return (xbox_smc_read(CPU_TEMP_REG, (unsigned char*)cpu) &&
xbox_smc_read(MCPX_TEMP_REG, (unsigned char*)mcpx));
}
bool xbox_fanspeed(unsigned int *percentage) {
- if (xbox_smc_read(SMC_FAN_READBACK_REG, (char *)percentage)) {
+ if (xbox_smc_read(SMC_FAN_READBACK_REG, (unsigned char *)percentage)) {
*percentage *= 2;
return true;
}
@@ -173,7 +173,7 @@
//Reset the counter
if (xbox_smc_write(0x01,0x01)) {
for (i=0; i<3; ++i)
- xbox_smc_read(0x01, &ver[i]);
+ xbox_smc_read(0x01, (unsigned char*)&ver[i]);
result = true;
}
return result;
@@ -201,7 +201,7 @@
unsigned int cableType=0;
bool result=false;
*cable = CABLE_UNKNOWN;
- if (xbox_smc_read(0x04, (char*)&cableType)) {
+ if (xbox_smc_read(0x04, (unsigned char*)&cableType)) {
result = true;
switch (cableType) {
case 0: