Changeset 5527:4d22e732b1c9 in roaraudio


Ignore:
Timestamp:
06/11/12 19:11:50 (7 years ago)
Author:
phi
Branch:
default
Message:

fixed some compiler warnings on win*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r5419 r5527  
    4141 
    4242static int roar_socket_open_file  (int mode, const char * host, int port); 
     43 
     44#ifdef ROAR_SUPPORT_PROXY 
    4345static int roar_socket_open_proxy (int mode, int type, const char * host, int port, const char * proxy_type); 
    4446 
     
    5052static int roar_socket_open_http   (int mode, int fh, const char * host, int port, const char * user, const char * pw, const char * opts); 
    5153 
     54#ifdef ROAR_HAVE_BIN_SS 
    5255static int roar_socket_open_ssh    (int mode, int fh, const char * host, int port, const char * user, const char * pw, const char * opts); 
     56#endif 
     57#endif 
    5358 
    5459 
     
    6772#endif 
    6873 
     74#ifdef ROAR_HAVE_LIBDNET 
    6975static int roar_socket_decnet_set_timeout (int fh, time_t sec, int_least32_t usec) { 
    70 #ifdef ROAR_HAVE_LIBDNET 
    7176 struct timeval timeout = {sec, usec}; 
    7277 
    7378 return setsockopt(fh, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout)); 
    74 #else 
    75  return -1; 
    76 #endif 
    77 } 
     79} 
     80#endif 
    7881 
    7982static int roar_socket_set_tos(int fh) { 
     
    415418 
    416419 
     420#ifdef ROAR_HAVE_LIBDNET 
    417421static int roar_socket_listen_decnet (const char * object, int num) { 
    418 #ifdef ROAR_HAVE_LIBDNET 
    419422 int fh = roar_socket_new(ROAR_SOCKET_TYPE_DECNET); 
    420423 struct sockaddr_dn bind_sockaddr; 
     
    461464 
    462465 return fh; 
    463 #else 
    464  roar_err_set(ROAR_ERROR_NOSYS); 
    465  return -1; 
    466 #endif 
    467 } 
     466} 
     467#endif 
    468468 
    469469const char * roar_socket_get_local_nodename(void) { 
Note: See TracChangeset for help on using the changeset viewer.