projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4_3 release
[unix-history]
/
usr
/
src
/
usr.lib
/
lpr
/
filters
/
vplotf.c
diff --git
a/usr/src/usr.lib/lpr/filters/vplotf.c
b/usr/src/usr.lib/lpr/filters/vplotf.c
index
b82dba0
..
c8f7641
100644
(file)
--- a/
usr/src/usr.lib/lpr/filters/vplotf.c
+++ b/
usr/src/usr.lib/lpr/filters/vplotf.c
@@
-1,6
+1,12
@@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)vplotf.c
4.3 (Berkeley) 7/16/83
";
-#endif
+static char sccsid[] = "@(#)vplotf.c
5.2 (Berkeley) 11/11/85
";
+#endif
not lint
/*
* Lpd filter to read standard graphics input and produce a plot on the
/*
* Lpd filter to read standard graphics input and produce a plot on the
@@
-151,7
+157,7
@@
account(who, from, acctfile)
* Varian accounting is done by 8.5 inch pages;
* Versatec accounting is by the (12 inch) foot.
*/
* Varian accounting is done by 8.5 inch pages;
* Versatec accounting is by the (12 inch) foot.
*/
- fprintf(a, "t%6.2f\t", (
lines / 200.0) /
PAGE_LINES);
+ fprintf(a, "t%6.2f\t", (
double)lines / (double)
PAGE_LINES);
if (from != NULL)
fprintf(a, "%s:", from);
fprintf(a, "%s\n", who);
if (from != NULL)
fprintf(a, "%s:", from);
fprintf(a, "%s\n", who);
@@
-421,7
+427,7
@@
register x0, y0;
point(x1, y1);
}
point(x1, y1);
}
-#define labs(a) (
a >= 0 ? a : -a
)
+#define labs(a) (
(a) >= 0 ? (a) : -(a)
)
circle(x,y,c)
{
circle(x,y,c)
{