Changeset 331

Show
Ignore:
Timestamp:
04/29/08 17:30:13 (5 months ago)
Author:
zany
Message:

compatible types in old test apps

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/apps/obex_tcp.c

    r320 r331  
    2929#include <string.h> 
    3030 
    31 #if _WIN32 
     31#ifdef _WIN32 
    3232#include <winsock2.h> 
     33#define in_addr_t unsigned long 
    3334#else 
    3435 
     
    6263{ 
    6364        struct hostent *host; 
    64         u_long inaddr; 
     65        in_addr_t inaddr; 
    6566         
    6667        /* Is the address in dotted decimal? */ 
  • trunk/apps/obex_test.c

    r328 r331  
    2929#include <string.h> 
    3030 
    31 #if _WIN32 
     31#ifdef _WIN32 
    3232#include <winsock2.h> 
     33#define in_addr_t unsigned long 
    3334#else 
    3435#include <sys/socket.h> 
     
    113114{ 
    114115        struct hostent *host; 
    115         u_long inaddr; 
     116        in_addr_t inaddr; 
    116117         
    117118        /* Is the address in dotted decimal? */ 
     
    404405                                } 
    405406                                if(btobex) { 
    406 #if HAVE_BLUETOOTH 
     407#ifdef HAVE_BLUETOOTH 
    407408                                        if(BtOBEX_ServerRegister(handle, BDADDR_ANY, channel) < 0) { 
    408409                                                printf("Server register error! (Bluetooth)\n"); 
  • trunk/ircp/ircp_client.c

    r316 r331  
    77#ifdef _WIN32 
    88#include <windows.h> 
     9#define in_addr_t unsigned long 
    910#include <direct.h> 
    1011#endif 
     
    213214        { 
    214215                struct sockaddr_in peer; 
    215                 u_long inaddr; 
     216                in_addr_t inaddr; 
    216217                if ((inaddr = inet_addr("127.0.0.1")) != INADDR_NONE) { 
    217218                        memcpy((char *) &peer.sin_addr, (char *) &inaddr,