Navigation


Changeset 1052:b3d623f04b6d in freeDiameter


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

Files:
12 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;
  • include/freeDiameter/libfdproto.h

    r1038 r1052  
    9191
    9292/* Remove some deprecated warnings from some gnutls versions, when possible */
    93 #if defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 405
     93#if defined(__GNUC__)
    9494# define GCC_DIAG_DO_PRAGMA(x) _Pragma (#x)
    9595# define GCC_DIAG_PRAGMA(x) GCC_DIAG_DO_PRAGMA(GCC diagnostic x)
    96 # if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406
     96# if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406         /* 4.6.x */
    9797#  define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(push) \
    9898     GCC_DIAG_PRAGMA(ignored x)
    9999#  define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(pop)
    100 # else
     100# else                                                  /* older */
    101101#  define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored x)
    102102#  define GCC_DIAG_ON(x)  GCC_DIAG_PRAGMA(warning x)
     
    19151915int fd_sess_fromsid ( uint8_t * sid, size_t len, struct session ** session, int * isnew);
    19161916
     1917/* only use the following in specific situations, e.g. app_radgw extension. They are normally handled by the framework only */
     1918int fd_sess_fromsid_msg ( uint8_t * sid, size_t len, struct session ** session, int * isnew);
     1919int fd_sess_ref_msg ( struct session * session );
     1920
    19171921/*
    19181922 * FUNCTION:    fd_sess_getsid
  • libfdcore/p_sr.c

    r1014 r1052  
    7878               
    7979                fd_log_debug(" - Next req (hbh:%x): [since %ld.%06ld sec]", *nexthbh,
    80                         (now.tv_nsec >= sr->added_on.tv_nsec) ? (now.tv_sec - sr->added_on.tv_sec) : (now.tv_sec - sr->added_on.tv_sec - 1),
    81                         (now.tv_nsec >= sr->added_on.tv_nsec) ? (now.tv_nsec - sr->added_on.tv_nsec) / 1000 : (now.tv_nsec - sr->added_on.tv_nsec + 1000000000) / 1000);
     80                        (long)((now.tv_nsec >= sr->added_on.tv_nsec) ? (now.tv_sec - sr->added_on.tv_sec) : (now.tv_sec - sr->added_on.tv_sec - 1)),
     81                        (long)((now.tv_nsec >= sr->added_on.tv_nsec) ? ((now.tv_nsec - sr->added_on.tv_nsec) / 1000) : ((now.tv_nsec - sr->added_on.tv_nsec + 1000000000) / 1000)));
    8282               
    8383                fd_msg_dump_one(ANNOYING + 1, sr->req);
  • libfdproto/dictionary.c

    r1050 r1052  
    11801180                                        n = enumval->enum_value.os.len;
    11811181                                for (i=0; i < n; i++)
    1182                                         fd_log_debug("0x%02hhX/'%c' ", enumval->enum_value.os.data[i], ASCII(enumval->enum_value.os.data[i]));
     1182                                        fd_log_debug("0x%2hhX/'%c' ", enumval->enum_value.os.data[i], ASCII(enumval->enum_value.os.data[i]));
    11831183                                if (n == LEN_MAX)
    11841184                                        fd_log_debug("...");
  • libfdproto/dictionary_functions.c

    r1035 r1052  
    232232
    233233                char * end = strchr(ret, '\0');
    234                 char * oldend = end;
    235234                while (end > ret) {
    236235                        end--;
     
    337336                return ret;
    338337        }
    339         if (diameter_string_to_time_t(avp_value->os.data, avp_value->os.len, &val) != 0) {
     338        if (diameter_string_to_time_t((char *)avp_value->os.data, avp_value->os.len, &val) != 0) {
    340339                snprintf(ret, STR_LEN, "[time conversion error]");
    341340                return ret;
  • libfdproto/fdproto-internal.h

    r1036 r1052  
    6666
    6767/* Messages / sessions API */
    68 int fd_sess_fromsid_msg ( uint8_t * sid, size_t len, struct session ** session, int * new);
    69 int fd_sess_ref_msg ( struct session * session );
    7068int fd_sess_reclaim_msg ( struct session ** session );
    7169
Note: See TracChangeset for help on using the changeset viewer.