]> git.tue.mpg.de Git - paraslash.git/commitdiff
server: Kill two pointless variables in vss.c.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 7 Aug 2017 17:17:42 +0000 (19:17 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 8 Aug 2017 09:50:55 +0000 (11:50 +0200)
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.

vss.c

diff --git a/vss.c b/vss.c
index 30285aeff5441e540f66dc92afc8b0717a60d9b5..dc325a3d27ad1a121cae583dc69d48b78037214c 100644 (file)
--- 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;