commit d6c5ba887df451469cbd01a7860088d9ddff6a32
parent 1e8ddcfc4f6a69280a34bdee16eb9e2f51afaea0
Author: sin <sin@2f30.org>
Date: Mon, 22 Feb 2016 15:41:26 +0000
Use existing define instead of magic number
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sbm.c b/sbm.c
@@ -279,8 +279,8 @@ main(int argc, char *argv[])
delay = strtol(EARGF(usage()), &end, 10);
if (*end != '\0' || errno)
errx(1, "invalid delay");
- if (delay < 100)
- errx(1, "minimum delay is 100 ms");
+ if (delay < SAMPLINGRATE)
+ errx(1, "minimum delay is %d ms", SAMPLINGRATE);
break;
case 'i':
strncpy(ifname, EARGF(usage()), sizeof(ifname));