summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ncrcontrol
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1995-03-14 21:12:26 +0000
committerse <se@FreeBSD.org>1995-03-14 21:12:26 +0000
commit08a779bfe190afd5958924bb440ab3f1b61dd2bb (patch)
tree7d86cbeecbbaf762598fc4c027258340f213d9c7 /usr.sbin/ncrcontrol
parent526e1ef41f2964e13f591b7e375cd16afd80fffa (diff)
downloadFreeBSD-src-08a779bfe190afd5958924bb440ab3f1b61dd2bb.zip
FreeBSD-src-08a779bfe190afd5958924bb440ab3f1b61dd2bb.tar.gz
Fix "-ssync=xx" option.
Diffstat (limited to 'usr.sbin/ncrcontrol')
-rw-r--r--usr.sbin/ncrcontrol/ncrcontrol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ncrcontrol/ncrcontrol.c b/usr.sbin/ncrcontrol/ncrcontrol.c
index 98308b1..9aad16f 100644
--- a/usr.sbin/ncrcontrol/ncrcontrol.c
+++ b/usr.sbin/ncrcontrol/ncrcontrol.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncrcontrol.c,v 1.4 1994/10/26 19:23:02 se Exp $
+** $Id: ncrcontrol.c,v 1.5 1995/02/03 20:49:10 bde Exp $
**
** Utility for NCR 53C810 device driver.
**
@@ -52,6 +52,7 @@
#endif
#include <nlist.h>
#include <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#include <paths.h>
#include <limits.h>
@@ -730,7 +731,7 @@ void do_set (char * arg)
};
if (!strncmp(arg, "sync=", 5)) {
- float f = strtod (arg+5, NULL);
+ double f = strtod (arg+5, NULL);
if (f>=4.0 && f<=10.0) {
user.data = 250.0 / f;
user.cmd = UC_SETSYNC;
OpenPOWER on IntegriCloud