Navigation


Changeset 709:19a9470de77a in freeDiameter for libfdcore/cnxctx.c


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.