Navigation


Changeset 908:ed611e15f744 in freeDiameter for libfdcore


Ignore:
Timestamp:
Jan 20, 2013, 12:35:48 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix a few warnings, thank you Thomas again

Location:
libfdcore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/core.c

    r871 r908  
    3636#include "fdcore-internal.h"
    3737
     38#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    3839#include <gcrypt.h>
     40#pragma GCC diagnostic warning "-Wdeprecated-declarations"
    3941
    4042/* The static configuration structure */
  • libfdcore/peers.c

    r837 r908  
    543543        /* Send the new connection event to the PSM */
    544544        CHECK_MALLOC_DO( ev_data = malloc(sizeof(struct cnx_incoming)), { ret = ENOMEM; goto out; } );
    545         memset(ev_data, 0, sizeof(ev_data));
     545        memset(ev_data, 0, sizeof(*ev_data));
    546546       
    547547        ev_data->cer = msg;
Note: See TracChangeset for help on using the changeset viewer.