Navigation


Changeset 1052:b3d623f04b6d in freeDiameter for extensions


Ignore:
Timestamp:
Apr 24, 2013, 1:49:00 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix a number of remaining compilation warnings

Location:
extensions
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_diameap/diameap_eap.c

    r1027 r1052  
    452452                                                        &eap_i->aaaEapEMSKData, &eap_i->aaaEapEMSKLength))
    453453                                        {
    454                                                 TRACE_DEBUG(INFO,"%s[EAP Protocol] Generating EAP Master Key failed.",DIAMEAP_EXTENSION,eap_sm->selectedMethod->methodname)
     454                                                TRACE_DEBUG(INFO,"%s[EAP Protocol] [%s plugin] Generating EAP Master Key failed.",DIAMEAP_EXTENSION,eap_sm->selectedMethod->methodname)
    455455                                                eap_i->aaaEapMSKLength = 0;
    456456                                                eap_i->aaaEapEMSKLength = 0;
     
    476476                                        &eap_sm->currentVendor))
    477477                        {
    478                                 TRACE_DEBUG(INFO,"%s[EAP Protocol] Selecting EAP Method plugin failed.",DIAMEAP_EXTENSION,eap_sm->selectedMethod->methodname);
     478                                TRACE_DEBUG(INFO,"%s[EAP Protocol] [%s plugin] Selecting EAP Method plugin failed.",DIAMEAP_EXTENSION,eap_sm->selectedMethod->methodname);
    479479
    480480                                *non_fatal_error = TRUE;
  • extensions/app_diameap/diameap_plugins.c

    r1027 r1052  
    130130                {
    131131                        TRACE_DEBUG(INFO,
    132                                         "%s[%s plugin] Unable to register EAP method.",DIAMEAP_EXTENSION,
     132                                        "%s[%s plugin] Unable to register EAP method: %s.",DIAMEAP_EXTENSION,
    133133                                        plugin->methodname, dlerror());
    134134                        return EINVAL;
  • extensions/app_diameap/diameap_tls.h

    r1034 r1052  
    4040#define DIAMEAP_TLS_H_
    4141
    42  #if defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 405
     42#if defined(__GNUC__)
    4343# define GCC_DIAG_DO_PRAGMA(x) _Pragma (#x)
    4444# define GCC_DIAG_PRAGMA(x) GCC_DIAG_DO_PRAGMA(GCC diagnostic x)
    45 # if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406
     45# if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406         /* 4.6.x */
    4646#  define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(push) \
    4747     GCC_DIAG_PRAGMA(ignored x)
    4848#  define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(pop)
    49 # else
     49# else                                                  /* older */
    5050#  define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored x)
    5151#  define GCC_DIAG_ON(x)  GCC_DIAG_PRAGMA(warning x)
  • extensions/app_radgw/radius.c

    r1027 r1052  
    251251        unsigned char *pos;
    252252        u8 attrtype;
    253         size_t offset = 0;
    254253       
    255254        memset(outbuf, 0, buflen);
  • extensions/app_radgw/rgw_plugins.c

    r996 r1052  
    401401        for (li = head->next; li != head; li = li->next) {
    402402                struct plg_descr * plg = ((struct plg_accel_item *) li)->plg;
    403                 int locstateful = 0;
    404403               
    405404                if (plg->descriptor->rgwp_diam_ans) {
  • extensions/app_sip/registrationtermination.c

    r1027 r1052  
    9898        struct msg * message=NULL;
    9999        struct avp *groupedavp=NULL, *avp=NULL;
    100         struct session *sess=NULL;
    101100        union avp_value value;
    102101       
  • extensions/rt_ignore_dh/rt_ignore_dh.c

    r1043 r1052  
    5656        struct avp *oh_avp = NULL;
    5757        struct avp *pi_avp = NULL;
    58         int match;
    5958        void *ps, *new_oh;
    6059        size_t ps_len, new_oh_len = 0;
     
    6766        while (avp && (!oh_avp || !pi_avp)) {
    6867                struct avp_hdr * ahdr;
     68                int match = 0;
    6969               
    7070                CHECK_FCT(fd_msg_avp_hdr(avp, &ahdr));
     
    7777                        case AC_PROXY_INFO:
    7878                                ps = NULL;
    79                                 match = ps_len = 0;
     79                                ps_len = 0;
    8080                                CHECK_FCT(fd_msg_parse_dict(avp, fd_g_config->cnf_dict, NULL));
    8181                                CHECK_FCT(fd_msg_browse(avp, MSG_BRW_FIRST_CHILD, &child, NULL));
    82                                 int match = 0;
    8382                                while (child && (!match || !ps)) {
    8483                                        struct avp_hdr *chdr;
Note: See TracChangeset for help on using the changeset viewer.