Move close so that last ioctl is before close call.

Fix duplicate word in comment.
Based on patch from Christian Biere in PR 18902, with a style nit fixed.
This commit is contained in:
wiz 2002-11-03 19:35:00 +00:00
parent f8dceffac5
commit 9a746b1751
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: play.c,v 1.38 2002/10/01 20:22:10 mrg Exp $ */
/* $NetBSD: play.c,v 1.39 2002/11/03 19:35:00 wiz Exp $ */
/*
* Copyright (c) 1999 Matthew R. Green
@ -198,9 +198,9 @@ cleanup(signo)
int signo;
{
close(audiofd);
(void)ioctl(audiofd, AUDIO_FLUSH, NULL);
(void)ioctl(audiofd, AUDIO_SETINFO, &info);
close(audiofd);
exit(exitstatus);
}
@ -291,7 +291,7 @@ play(file)
}
/*
* play the file on on the file descriptor fd
* play the file on the file descriptor fd
*/
void
play_fd(file, fd)