Update of /cvsroot/gtkpod/libgpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv9584/src
Modified Files:
itdb_device.c
Log Message:
* src/itdb_device.c: fixed endianness autodetection for big endian
mobile phones. Thanks to Rached Ben Mustapha for the patch.
Index: itdb_device.c
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/src/itdb_device.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- itdb_device.c 10 Jun 2006 10:12:24 -0000 1.9
+++ itdb_device.c 27 Jun 2006 12:35:01 -0000 1.10
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-06-10 15:14:18 jcs>
+/* Time-stamp: <2006-06-27 21:28:29 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -601,7 +601,7 @@
(buf[2] == hdr[1]) &&
(buf[3] == hdr[0]))
{
- byte_order = G_LITTLE_ENDIAN;
+ byte_order = G_BIG_ENDIAN;
}
}
}
@@ -654,10 +654,11 @@
if (control_dir)
{
gchar *cd_l = g_ascii_strdown (control_dir, -1);
+ /* check if cd_l ends on "itunes/itunes_control" */
if (strstr (cd_l, "itunes/itunes_control") ==
(cd_l + strlen (cd_l) - strlen ("itunes/itunes_control")))
{
- device->byte_order = G_BIG_ENDIAN;
+ byte_order = G_BIG_ENDIAN;
}
g_free (cd_l);
g_free (control_dir);
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2