Navigation


Changeset 709:19a9470de77a in freeDiameter


Ignore:
Timestamp:
Feb 10, 2011, 10:49:09 AM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix a few compilations errors and warnings

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgwx_sip.c

    r706 r709  
    648648                        size_t temp_len = attr->length - sizeof(struct radius_attr_hdr) + CONSTSTRLEN(SIP_PREFIX) + 1;
    649649                        CHECK_MALLOC( temp = malloc(temp_len) );
    650                         temp_len = snprintf((char *)temp, temp_len, SIP_PREFIX "%.*s", attr->length - sizeof(struct radius_attr_hdr), (char *)(attr + 1));
     650                        temp_len = snprintf((char *)temp, temp_len, SIP_PREFIX "%.*s", (int)(attr->length - sizeof(struct radius_attr_hdr)), (char *)(attr + 1));
    651651                       
    652652                        value.os.data=temp;
  • libfdcore/cnxctx.c

    r706 r709  
    156156        TRACE_DEBUG(INFO, "This function should never been called when SCTP is disabled...");
    157157        ASSERT(0);
    158         CHECK_FCT_DO( ENOTSUP, return NULL);
     158        CHECK_FCT_DO( ENOTSUP, );
     159        return NULL;
    159160#else /* DISABLE_SCTP */
    160161        struct cnxctx * cnx = NULL;
     
    355356        TRACE_DEBUG(INFO, "This function should never be called when SCTP is disabled...");
    356357        ASSERT(0);
    357         CHECK_FCT_DO( ENOTSUP, return NULL);
     358        CHECK_FCT_DO( ENOTSUP, );
     359        return NULL;
    358360#else /* DISABLE_SCTP */
    359361        int sock = 0;
     
    499501{
    500502        CHECK_PARAMS_DO( conn, return 0 );
    501         #ifdef DISABLE_SCTP
     503        #ifndef DISABLE_SCTP
    502504        if (conn->cc_proto == IPPROTO_SCTP)
    503505                return (conn->cc_sctp_para.str_in > 1) || (conn->cc_sctp_para.str_out > 1);
  • tests/testostr.c

    r707 r709  
    9292               
    9393                /* The UTF-8 chars are considered valid */
    94                 CHECK( 1, fd_os_is_valid_DiameterIdentity((os0_t)TEST_IDN_UTF8, CONSTSTRLEN(TEST_IDN_UTF8) );
     94                CHECK( 1, fd_os_is_valid_DiameterIdentity((os0_t)TEST_IDN_UTF8, CONSTSTRLEN(TEST_IDN_UTF8) ) );
    9595               
    9696                /* The string should be passed unmodified */
Note: See TracChangeset for help on using the changeset viewer.