svn commit: r326970 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Tue Dec 19 09:58:43 UTC 2017
Author: pho
Date: Tue Dec 19 09:58:41 2017
New Revision: 326970
URL: https://svnweb.freebsd.org/changeset/base/326970
Log:
Added error handling to switch.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/misc/mmap32.sh
Modified: user/pho/stress2/misc/mmap32.sh
==============================================================================
--- user/pho/stress2/misc/mmap32.sh Tue Dec 19 09:53:48 2017 (r326969)
+++ user/pho/stress2/misc/mmap32.sh Tue Dec 19 09:58:41 2017 (r326970)
@@ -126,6 +126,8 @@ fuzz(int arg, void *addr, size_t len, int prot, int fl
prot = makearg();
flags = makearg();
break;
+ default:
+ errx(1, "Bad argument %d to %s", arg, __func__);
}
vp = mmap(addr, len, prot, flags, fd, offset);
if (vp != MAP_FAILED) {
More information about the svn-src-user
mailing list