Changeset 3788:fe1762804632 in roaraudio for libroar/slp.c


Ignore:
Timestamp:
05/07/10 15:44:52 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fix some warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/slp.c

    r3517 r3788  
    3636#include "libroar.h" 
    3737 
     38#if defined(ROAR_HAVE_LIBSLP) && defined(ROAR_HAVE_TIME) 
     39#define _CAN_OPERATE 
     40#endif 
     41 
    3842SLPBoolean roar_slp_url_callback(SLPHandle        hslp, 
    3943                                 const char     * srvurl, 
     
    4145                                 SLPError         errcode, 
    4246                                 void           * cookie) { 
    43 #ifdef ROAR_HAVE_LIBSLP 
     47#ifdef _CAN_OPERATE 
    4448 struct roar_slp_cookie * self = cookie; 
    4549 
     
    7882 
    7983int roar_slp_search          (struct roar_slp_cookie * cookie, char * type) { 
    80 #ifdef ROAR_HAVE_LIBSLP 
     84#ifdef _CAN_OPERATE 
    8185 SLPError err; 
    8286 SLPHandle hslp; 
     
    151155 
    152156int    roar_slp_find_roard_r (char * addr, size_t len, int nocache) { 
     157#ifdef _CAN_OPERATE 
    153158 static struct roar_slp_match    cache  = {"", 0}; 
    154159        struct roar_slp_cookie   cookie; 
     
    207212 
    208213 return 0; 
     214#else 
     215 return -1; 
     216#endif 
    209217} 
    210218 
Note: See TracChangeset for help on using the changeset viewer.