Add copyright
[unix-history] / usr / src / usr.sbin / lpr / lpd / recvjob.c
index 83f1470..a88dd3f 100644 (file)
@@ -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[] = "@(#)recvjob.c  4.7 (Berkeley) %G%";
-#endif
+static char sccsid[] = "@(#)recvjob.c  5.1 (Berkeley) %G%";
+#endif not lint
 
 /*
  * Receive printer jobs from the network, queue them and
 
 /*
  * Receive printer jobs from the network, queue them and
@@ -267,7 +273,6 @@ read_number(fn)
  */
 rcleanup()
 {
  */
 rcleanup()
 {
-       register int i;
 
        if (tfname[0])
                (void) unlink(tfname);
 
        if (tfname[0])
                (void) unlink(tfname);
@@ -275,9 +280,9 @@ rcleanup()
                do {
                        do
                                (void) unlink(dfname);
                do {
                        do
                                (void) unlink(dfname);
-                       while (dfname[i]-- != 'A');
-                       dfname[i] = 'z';
-               } while (dfname[i-2]-- != 'd');
+                       while (dfname[2]-- != 'A');
+                       dfname[2] = 'z';
+               } while (dfname[0]-- != 'd');
 }
 
 frecverr(msg, a1, a2)
 }
 
 frecverr(msg, a1, a2)