Navigation


Changeset 1405:3cbe458fbfa9 in freeDiameter


Ignore:
Timestamp:
Feb 18, 2020, 2:23:53 PM (4 years ago)
Author:
Luke Mewburn <luke@mewburn.net>
Branch:
default
Phase:
public
Message:

Fix compiler warnings

Files:
11 edited

Legend:

Unmodified
Added
Removed
  • extensions/acl_wl/aw_tree.c

    r1354 r1405  
    340340        struct split_name sn;
    341341        int lbl, found;
    342         struct tree_item * ti;
     342        struct tree_item * ti = NULL;
    343343        struct fd_list * senti, *li;
    344344       
  • extensions/app_diameap/diameap_server.c

    r1151 r1405  
    30653065        struct diameap_state_machine * diameap_sm = NULL;
    30663066        struct diameap_eap_interface eap_i;
    3067         struct msg *req, *ans;
     3067        struct msg *req, *ans = NULL;
    30683068        boolean non_fatal_error = FALSE;
    30693069
  • extensions/app_radgw/rgw_clients.c

    r1190 r1405  
    549549        int valid_nas_info = 0;
    550550        struct radius_attr_hdr *nas_ip = NULL, *nas_ip6 = NULL, *nas_id = NULL;
    551         size_t nas_id_len;
     551        size_t nas_id_len = 0;
    552552        char * oh_str = NULL; size_t oh_strlen = 0; int oh_free = 0;
    553553        char * or_str = NULL; size_t or_strlen = 0;
  • extensions/app_sip/multimediaauth.c

    r1088 r1405  
    5151        int found_cnonce=0;
    5252        struct avp * tempavp=NULL,*sipAuthentication=NULL,*sipAuthenticate=NULL;
    53         char * result;
     53        char * result = NULL;
    5454        char password[51];
    5555        int idx=0, number_of_auth_items=0,i=0, ret=0;
  • extensions/dbg_monitor/dbg_monitor.c

    r1220 r1405  
    7676static void * mn_thr(void * arg)
    7777{
     78#ifdef DEBUG
    7879        int i = 0;
     80#endif
    7981        fd_log_threadname("Monitor thread");
    8082        char * buf = NULL;
  • libfdcore/hooks.c

    r1329 r1405  
    333333                switch (type) {
    334334                        case HOOK_DATA_RECEIVED: {
     335#ifdef DEBUG
    335336                                struct fd_cnx_rcvdata *rcv_data = other;
     337#endif
    336338                                LOG_A("RCV: %zd bytes", rcv_data->length);
    337339                                break;
  • libfdcore/p_ce.c

    r1396 r1405  
    705705{
    706706        uint32_t rc = 0;
    707         int st;
     707        int st = STATE_NEW;
    708708        struct fd_pei pei;
    709709       
  • libfdcore/sctp3436.c

    r1344 r1405  
    138138{
    139139        struct sctp3436_ctx * ctx = arg;
    140         struct cnxctx    *cnx;
     140        struct cnxctx    *cnx = NULL;
    141141
    142142        TRACE_ENTRY("%p", arg);
  • libfdproto/dictionary_functions.c

    r1300 r1405  
    288288int fd_dictfct_Time_encode(void * data, union avp_value * avp_value)
    289289{
    290         char * buf;
     290        char * buf = NULL;
    291291        size_t len;
    292292       
  • libfdproto/fifo.c

    r1393 r1405  
    171171{
    172172        struct fifo * q;
     173#ifdef DEBUG
    173174        int loops = 0;
     175#endif
    174176
    175177        TRACE_ENTRY( "%p", queue );
     
    226228int fd_fifo_move ( struct fifo * old, struct fifo * new, struct fifo ** loc_update )
    227229{
     230#ifdef DEBUG
    228231        int loops = 0;
     232#endif
    229233
    230234        TRACE_ENTRY("%p %p %p", old, new, loc_update);
     
    417421                        queue->thrs_push-- ;
    418422
     423#ifndef DEBUG
     424                        (void)ret;
     425#endif
    419426                        ASSERT( ret == 0 );
    420427                }
  • libfdproto/messages.c

    r1327 r1405  
    22852285        if (msg->msg_model != NULL) {
    22862286                /* Check if this model is still valid for the message data */
     2287#ifdef DEBUG
    22872288                enum dict_object_type    dicttype;
     2289#endif
    22882290                struct dict_cmd_data     data;
    22892291                ASSERT(((fd_dict_gettype(msg->msg_model, &dicttype) == 0) && (dicttype == DICT_COMMAND)));
Note: See TracChangeset for help on using the changeset viewer.