The branch main has been updated by emaste:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=83325e7b738ce87d88553585b135b0e7d15997a6

commit 83325e7b738ce87d88553585b135b0e7d15997a6
Author:     Ed Maste <ema...@freebsd.org>
AuthorDate: 2024-09-03 14:21:46 +0000
Commit:     Ed Maste <ema...@freebsd.org>
CommitDate: 2024-09-03 14:27:43 +0000

    beep: show error upon failure to open sound device
    
    If beep cannot open /dev/dsp provide more information to aid the user
    in diagnosing a problem.
    
    Reviewed by:    christos
    Sponsored by:   The FreeBSD Foundation
---
 usr.bin/beep/beep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/beep/beep.c b/usr.bin/beep/beep.c
index 151236b4825b..2696bacfacf4 100644
--- a/usr.bin/beep/beep.c
+++ b/usr.bin/beep/beep.c
@@ -202,7 +202,7 @@ main(int argc, char **argv)
 
        f = open(oss_dev, O_WRONLY);
        if (f < 0)
-               errx(1, "Failed to open '%s'", oss_dev);
+               err(1, "Failed to open '%s'", oss_dev);
 
        c = 1;                          /* mono */
        if (ioctl(f, SOUND_PCM_WRITE_CHANNELS, &c) != 0)

Reply via email to