Группа :: Коммуникации
Пакет: leif
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: leif-0.7-cvs-c++.patch
--- leif-0.7/leif/leifobex.cpp 2004-01-04 21:24:43 +0300
+++ leif-0.7/leif/leifobex.cpp.c++ 2004-01-04 21:31:54 +0300
@@ -77,11 +77,10 @@
bdaddr_t bda;
str2ba(address, &bda);
- // the following line refuses to compile with gcc-3.3.1 and libbluez-devel-1.0.0 and compiler option -pdantic
- // with error: ISO C++ forbids compound literals
- // suggested workaround: uncomment -pedantic from generated Makefile
- // the compound literal in BDADDR_ANY should hopefully disappear from bluetooth.h in the near future...
- if(BtOBEX_TransportConnect(handle, BDADDR_ANY, &bda, channel) < 0)
+
+ bdaddr_t bdaddr_any = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+
+ if(BtOBEX_TransportConnect(handle, &bdaddr_any, &bda, channel) < 0)
{
KMessageBox::error(0, i18n("OBEX transport connect error"), i18n("Error"));
return NULL;