Changeset 178

Show
Ignore:
Timestamp:
07/11/07 20:00:48 (17 months ago)
Author:
zany
Message:

compatible hci selection

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/obexftp/client.c

    r177 r178  
    549549        char *devicedup, *devicep; 
    550550        bdaddr_t bdaddr, src_addr; 
    551         int hci_id; 
    552551#endif 
    553552#ifdef HAVE_USB 
     
    608607                if (!src) { 
    609608                        bacpy(&src_addr, BDADDR_ANY); 
    610                 } else { 
     609                } 
     610#ifndef _WIN32 
     611                else if (!strncmp(src, "hci", 3)) { 
     612                        hci_devba(atoi(src + 3), &src_addr); 
     613                } 
     614#endif 
     615                else { 
    611616                        str2ba(src, &src_addr); 
    612                         hci_id = atoi(src); 
    613 #ifndef _WIN32 
    614                         if (hci_id > 0) { 
    615                                 hci_devba(hci_id, &src_addr);    
    616                         } 
    617 #endif 
    618617                } 
    619618                if (!device) {