From 23b1141809ea872a144d8dbe6d123e93e74094de Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 6 Oct 2010 23:23:19 +0200 Subject: [PATCH] Remove unused field "sc" of struct udp_target. All functions get/pass a struct sender_client which contains a struct udp_target as its private data, but we never need to get the struct sender_client from a struct udp_target. So the sc pointer is unnecessary. --- udp_send.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/udp_send.c b/udp_send.c index ba7163a8..35637f7a 100644 --- a/udp_send.c +++ b/udp_send.c @@ -43,8 +43,6 @@ struct udp_target { /** Track time (seconds) of last ICMP Port Unreachable error */ time_t last_unreachable; - /** Common sender client data */ - struct sender_client *sc; /** The opaque structure returned by vss_add_fec_client(). */ struct fec_client *fc; /** The FEC parameters for this target. */ @@ -339,7 +337,7 @@ static int udp_com_add(struct sender_command_data *scd) return -E_TARGET_EXISTS; } ut = para_calloc(sizeof(*ut)); - sc = ut->sc = para_calloc(sizeof(*sc)); + sc = para_calloc(sizeof(*sc)); ut->fcp.slices_per_group = scd->slices_per_group; ut->fcp.data_slices_per_group = scd->data_slices_per_group; ut->fcp.init_fec = udp_init_fec; -- 2.39.2