Print this page
10101 audio tools need smatch fixes

@@ -21,10 +21,14 @@
 /*
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
 /* Command-line audio play utility */
 
 #include <stdio.h>
 #include <errno.h>
 #include <ctype.h>

@@ -800,11 +804,12 @@
                 if (mapaddr != 0)
                         (void) munmap(mapaddr, st.st_size);
                 (void) close(ifd);              /* close input file */
                 if (Errdetect) {
                         cnt = 0;
-                        audio_set_play_error(Audio_fd, (unsigned int *)&cnt);
+                        (void) audio_set_play_error(Audio_fd,
+                            (unsigned int *)&cnt);
                         if (cnt) {
                                 Error(stderr,
                                     MGET("%s: output underflow in %s\n"),
                                     Ifile, prog);
                                 errorStatus++;