Navigation


Changeset 1027:0117a7746b21 in freeDiameter for libfdcore/sctps.c


Ignore:
Timestamp:
Apr 15, 2013, 4:17:07 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix a number of errors and warnings introduced/highlighted by recent commits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/sctps.c

    r1021 r1027  
    9595                                        CHECK_FCT_DO(fd_event_send(conn->cc_sctps_data.array[strid].raw_recv, event, bufsz, buf), goto fatal );
    9696                                } else {
    97                                         TRACE_DEBUG(INFO, "Received packet (%d bytes) on out-of-range stream #%d from %s, discarded.", bufsz, strid, conn->cc_remid);
     97                                        TRACE_DEBUG(INFO, "Received packet (%zd bytes) on out-of-range stream #%d from %s, discarded.", bufsz, strid, conn->cc_remid);
    9898                                        free(buf);
    9999                                }
     
    230230
    231231/* Set the parameters of a session to use the appropriate fifo and stream information */
     232#ifndef GNUTLS_VERSION_300
     233# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     234#endif /* !GNUTLS_VERSION_300 */
    232235static void set_sess_transport(gnutls_session_t session, struct sctps_ctx *ctx)
    233236{
     
    238241#ifndef GNUTLS_VERSION_300
    239242        /* starting version 2.12, this call is not needed */
    240         #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    241243        GNUTLS_TRACE( gnutls_transport_set_lowat( session, 0 ) );
    242         #pragma GCC diagnostic warning "-Wdeprecated-declarations"
    243244#endif /* GNUTLS_VERSION_300 */
    244245       
     
    249250        return;
    250251}
     252#ifndef GNUTLS_VERSION_300
     253# pragma GCC diagnostic pop "-Wdeprecated-declarations"
     254#endif /* !GNUTLS_VERSION_300 */
    251255
    252256/*************************************************************/
Note: See TracChangeset for help on using the changeset viewer.