Navigation


Changeset 1284:38e4a7c318ac in freeDiameter


Ignore:
Timestamp:
Jan 4, 2015, 1:55:57 AM (9 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix a number of compilation warnings

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/rt_busypeers/rtbusy.c

    r1283 r1284  
    114114                        expire.tv_nsec = (expire.tv_nsec + (1000000LL * (rtbusy_conf.RelayTimeout % 1000))) % 1000000000LL;
    115115                        CHECK_MALLOC_DO( fd_msg_dump_full(&buf, &len, NULL, *pmsg, fd_g_config->cnf_dict, 0, 1), /* nothing */);
    116                         TRACE_ERROR( "No answer received for message from peer '%.*s' before timeout (%dms), re-sending: %s", senttolen, sentto,
     116                        TRACE_ERROR( "No answer received for message from peer '%.*s' before timeout (%dms), re-sending: %s", (int)senttolen, sentto,
    117117                                     rtbusy_conf.RelayTimeout, buf);
    118118                        free(buf);
     
    128128
    129129                        CHECK_MALLOC_DO( fd_msg_dump_full(&buf, &len, NULL, *pmsg, fd_g_config->cnf_dict, 0, 1), /* nothing */);
    130                         TRACE_ERROR( "No answer received for message from peer '%.*s' before timeout (%dms), giving up and sending error reply: %s", senttolen, sentto,
     130                        TRACE_ERROR( "No answer received for message from peer '%.*s' before timeout (%dms), giving up and sending error reply: %s", (int)senttolen, sentto,
    131131                                     rtbusy_conf.RelayTimeout, buf);
    132132                        free(buf);
  • extensions/rt_ignore_dh/rt_ignore_dh.c

    r1272 r1284  
    138138                        CHECK_FCT(fd_msg_avp_new(ph_avp_do, 0, &ph_avp));
    139139                        memset(&val, 0, sizeof(val));
    140                         val.os.data = fd_g_config->cnf_diamid;
     140                        val.os.data = (uint8_t *)(fd_g_config->cnf_diamid);
    141141                        val.os.len = fd_g_config->cnf_diamid_len;
    142142                        CHECK_FCT(fd_msg_avp_setvalue(ph_avp, &val));
  • extensions/rt_load_balance/rt_load_balance.c

    r1273 r1284  
    6969                    load /= 2;
    7070                }
     71                score = cand->score;
    7172                cand->score -= load_log;
    7273                TRACE_DEBUG(FULL, "evaluated peer `%.*s', score was %d, now %d", (int)cand->diamidlen, cand->diamid, score, cand->score);
  • extensions/rt_randomize/rt_randomize.c

    r1278 r1284  
    3939#include <stdlib.h>
    4040
    41 static int seed;
     41static unsigned int seed;
    4242
    4343static int rt_randomizing(void * cbdata, struct msg ** pmsg, struct fd_list * candidates)
     
    9696        /* Register the callback */
    9797        CHECK_FCT(fd_rt_out_register(rt_randomizing, NULL, 4, &rt_randomizing_hdl));
    98         seed = (int)time(NULL);
     98        seed = (unsigned int)time(NULL);
    9999        TRACE_DEBUG(INFO, "Extension 'Randomizing' initialized");
    100100        return 0;
  • libfdcore/CMakeLists.txt

    r1180 r1284  
    11# The subproject name
    22Project("freeDiameter core library" C)
     3
     4# Configuration for newer cmake
     5cmake_policy(SET CMP0022 OLD)
    36
    47# Configuration parser
  • libfdproto/CMakeLists.txt

    r1159 r1284  
    22Project("libfdproto" C)
    33
     4# Configuration for newer cmake
     5cmake_policy(SET CMP0022 OLD)
    46
    57# List of source files for the library
  • libfdproto/dictionary_functions.c

    r1281 r1284  
    203203                case 8:
    204204                        /* E.164 */
    205                         CHECK_MALLOC_DO( fd_dump_extend(FD_DUMP_STD_PARAMS, "%.*s", avp_value->os.len-2, avp_value->os.data+2), return NULL);
     205                        CHECK_MALLOC_DO( fd_dump_extend(FD_DUMP_STD_PARAMS, "%.*s", (int)(avp_value->os.len-2), avp_value->os.data+2), return NULL);
    206206                        return *buf;
    207207                default:
Note: See TracChangeset for help on using the changeset viewer.