fix regression, err() -> errx()
This commit is contained in:
parent
f0b8f2b291
commit
bbd1a97b76
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: play.c,v 1.27 2002/01/13 04:43:18 ross Exp $ */
|
/* $NetBSD: play.c,v 1.28 2002/01/13 04:48:33 ross Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Matthew R. Green
|
* Copyright (c) 1999 Matthew R. Green
|
||||||
|
@ -297,7 +297,7 @@ play_fd(file, fd)
|
||||||
if (nr == 0) {
|
if (nr == 0) {
|
||||||
if (fflag)
|
if (fflag)
|
||||||
return;
|
return;
|
||||||
else goto read_error;
|
else errx(1, "unexpected EOF");
|
||||||
}
|
}
|
||||||
hdrlen = audioctl_write_fromhdr(buffer, nr, ctlfd, &datasize);
|
hdrlen = audioctl_write_fromhdr(buffer, nr, ctlfd, &datasize);
|
||||||
if (hdrlen < 0) {
|
if (hdrlen < 0) {
|
||||||
|
|
Loading…
Reference in New Issue