From 28afc7781a88734d8954cab3665eb3eacd11c284 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 23 Oct 2007 01:23:17 +0200 Subject: [PATCH] vss.c: Kill unused int audio_file. --- vss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vss.c b/vss.c index 0bc2aed4..ab5cd1b1 100644 --- a/vss.c +++ b/vss.c @@ -40,7 +40,6 @@ static struct timeval autoplay_barrier; extern struct misc_meta_data *mmd; extern struct sender senders[]; -static int audio_file; static char *map; /** @@ -194,7 +193,6 @@ static void vss_eof(void) tv_add(&mmd->afi.eof_tv, &now, &eof_barrier); munmap(map, mmd->size); map = NULL; - close(audio_file); mmd->audio_format = -1; mmd->chunks_sent = 0; mmd->offset = 0; @@ -397,6 +395,7 @@ static void recv_afs_result(void) mmd->mtime = statbuf.st_mtime; map = para_mmap(mmd->size, PROT_READ, MAP_PRIVATE, passed_fd, 0); + close(passed_fd); strcpy(mmd->filename, mmd->afd.path); /* FIXME: check length */ mmd->afi.header_len = 0; /* default: no header */ mmd->audio_format = mmd->afd.afsi.audio_format_id; -- 2.39.5