[Multisync-devel] patch for irmc bluetooth on linuxppc

2005-05-12 Thread Nathan Hand
This code in irmc_bluetooth.c isn't endian safe. On a PowerPC it was searching over 16 million devices on the piconet. 94 if (!sdp_general_inquiry(ii, 10, 1, (uint8_t*)&numfound)) (gdb) next ... (gdb) print numfound $25 = 16777216. The search effectively never finishes and the l

Re: [Multisync-devel] patch for irmc bluetooth on linuxppc

2005-05-12 Thread Armin Bauer
Nathan Hand wrote: This code in irmc_bluetooth.c isn't endian safe. On a PowerPC it was searching over 16 million devices on the piconet. 94 if (!sdp_general_inquiry(ii, 10, 1, (uint8_t*)&numfound)) (gdb) next ... (gdb) print numfound $25 = 16777216. The search effectively never fi

Re: [Multisync-devel] patch for irmc bluetooth on linuxppc

2005-05-12 Thread Nathan Hand
On Thu, 2005-05-12 at 16:19 +0200, Armin Bauer wrote: > > Nathan Hand wrote: > > This code in irmc_bluetooth.c isn't endian safe. On a PowerPC it was > > searching over 16 million devices on the piconet. > > > > 94 if (!sdp_general_inquiry(ii, 10, 1, (uint8_t*)&numfound)) > > (gdb) next

Re: [Multisync-devel] patch for irmc bluetooth on linuxppc

2005-05-12 Thread Nathan Hand
On Thu, 2005-05-12 at 16:19 +0200, Armin Bauer wrote: > > Nathan Hand wrote: > > This code in irmc_bluetooth.c isn't endian safe. On a PowerPC it was > > searching over 16 million devices on the piconet. > > > > 94 if (!sdp_general_inquiry(ii, 10, 1, (uint8_t*)&numfound)) > > (gdb) next

Re: [Multisync-devel] patch for irmc bluetooth on linuxppc

2005-05-12 Thread Armin Bauer
Nathan Hand wrote: On Thu, 2005-05-12 at 16:19 +0200, Armin Bauer wrote: Nathan Hand wrote: This code in irmc_bluetooth.c isn't endian safe. On a PowerPC it was searching over 16 million devices on the piconet. 94 if (!sdp_general_inquiry(ii, 10, 1, (uint8_t*)&numfound)) (gdb) next ... (