BSD 4_4 release
[unix-history] / usr / src / lib / libplot / t300s / line.c
index 96c0aea..80ef6b3 100644 (file)
@@ -1,6 +1,15 @@
+/*-
+ * Copyright (c) 1983, 1993
+ *     The Regents of the University of California.  All rights reserved.
+ *
+ * This module is believed to contain source code proprietary to AT&T.
+ * Use and redistribution is subject to the Berkeley Software License
+ * Agreement and your Software Agreement with AT&T (Western Electric).
+ */
+
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)line.c     4.1 (Berkeley) 6/27/83";
-#endif
+static char sccsid[] = "@(#)line.c     8.1 (Berkeley) 6/4/93";
+#endif /* not lint */
 
 #include "con.h"
 line(x0,y0,x1,y1){
 
 #include "con.h"
 line(x0,y0,x1,y1){
@@ -15,7 +24,7 @@ iline(cx0,cy0,cx1,cy1){
        int maxp,tt,j,np;
        char chx,chy,command;
            float xd,yd;
        int maxp,tt,j,np;
        char chx,chy,command;
            float xd,yd;
-       float dist2(),sqrt();
+       double dist2(),sqrt();
        movep(cx0,cy0);
        maxp = sqrt(dist2(cx0,cy0,cx1,cy1))/2.;
        xd = cx1-cx0;
        movep(cx0,cy0);
        maxp = sqrt(dist2(cx0,cy0,cx1,cy1))/2.;
        xd = cx1-cx0;