From: Andre Noll Date: Mon, 7 Aug 2017 17:17:42 +0000 (+0200) Subject: server: Kill two pointless variables in vss.c. X-Git-Tag: v0.6.1~35 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=0c82c9f7e35d989919894f76a05a084b0422e074;p=paraslash.git server: Kill two pointless variables in vss.c. Both variables are set but never used. The two variables were introduced back in the CVS days and have been pointless for the whole git history since 2006. --- diff --git a/vss.c b/vss.c index 30285aef..dc325a3d 100644 --- a/vss.c +++ b/vss.c @@ -1181,7 +1181,6 @@ void init_vss_task(int afs_socket, struct sched *s) { static struct vss_task vss_task_struct, *vsst = &vss_task_struct; int i; - char *hn = para_hostname(), *home = para_homedir(); long unsigned announce_time = OPT_UINT32_VAL(ANNOUNCE_TIME), autoplay_delay = OPT_UINT32_VAL(AUTOPLAY_DELAY); vsst->header_interval.tv_sec = 5; /* should this be configurable? */ @@ -1193,8 +1192,6 @@ void init_vss_task(int afs_socket, struct sched *s) PARA_NOTICE_LOG("initializing %s sender\n", senders[i].name); senders[i].init(&senders[i]); } - free(hn); - free(home); mmd->sender_cmd_data.cmd_num = -1; if (OPT_GIVEN(AUTOPLAY)) { struct timeval tmp;