BSD 4_4 release
[unix-history] / usr / src / lib / libplot / t300 / line.c
index ac8660e..34c7de3 100644 (file)
@@ -1,12 +1,14 @@
 /*-
 /*-
- * Copyright (c) 1983 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1983, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  *
- * %sccs.include.proprietary.c%
+ * 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.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)line.c     8.1 (Berkeley) 6/4/93";
 #endif /* not lint */
 
 #include "con.h"
 #endif /* not lint */
 
 #include "con.h"
@@ -22,7 +24,7 @@ iline(cx0,cy0,cx1,cy1){
        int maxp,tt,j,np;
        char chx,chy;
        float xd,yd;
        int maxp,tt,j,np;
        char chx,chy;
        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;