Author: cem
Date: Wed May 11 17:27:27 2016
New Revision: 299470
URL: https://svnweb.freebsd.org/changeset/base/299470

Log:
  mixer(8): Style: Tag no-return usage() as __dead2
  
  Coverity really should have figured this out from the exit(3) call at the end
  of the routine, but just make it explicit.
  
  No functional change.
  
  Reported by:  Coverity
  CID:          1304866 (false positive double-close of 'baz')
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/usr.sbin/mixer/mixer.c

Modified: head/usr.sbin/mixer/mixer.c
==============================================================================
--- head/usr.sbin/mixer/mixer.c Wed May 11 17:20:20 2016        (r299469)
+++ head/usr.sbin/mixer/mixer.c Wed May 11 17:27:27 2016        (r299470)
@@ -26,11 +26,11 @@ __FBSDID("$FreeBSD$");
 
 static const char *names[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_NAMES;
 
-static void    usage(int devmask, int recmask);
+static void    usage(int devmask, int recmask) __dead2;
 static int     res_name(const char *name, int mask);
 static void    print_recsrc(int recsrc, int recmask, int sflag);
 
-static void
+static void __dead2
 usage(int devmask, int recmask)
 {
        int     i, n;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to