diff --git a/daemon/graphite.c b/daemon/graphite.c index 69d5b0b4a..2a3b65586 100644 --- a/daemon/graphite.c +++ b/daemon/graphite.c @@ -276,7 +276,7 @@ void graphite_loop_run(struct callmaster* callmaster, int seconds) { ilog(LOG_ERROR,"Sending graphite data failed."); } - copy_with_lock(&cm->totalstats_lastinterval, &graphite_stats, &cm->totalstats_lastinterval); + copy_with_lock(&cm->totalstats_lastinterval, &graphite_stats, &cm->totalstats_lastinterval.total_average_lock); } } diff --git a/daemon/sdp.c b/daemon/sdp.c index 32ad36b57..3be85b735 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -1605,7 +1605,7 @@ static int process_media_attributes(struct sdp_chopper *chop, struct sdp_media * { GList *l; struct sdp_attributes *attrs = &sdp->attributes; - struct sdp_attribute *attr, *a; + struct sdp_attribute *attr /* , *a */; for (l = attrs->list.head; l; l = l->next) { attr = l->data;