BSD 4_4 release
[unix-history] / usr / src / usr.bin / uucp / libuu / anlwrk.c
index 35879a9..7d37b63 100644 (file)
@@ -1,6 +1,15 @@
+/*-
+ * Copyright (c) 1985, 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[] = "@(#)anlwrk.c   5.6 (Berkeley) %G%";
-#endif
+static char sccsid[] = "@(#)anlwrk.c   8.1 (Berkeley) 6/6/93";
+#endif /* not lint */
 
 #include "uucp.h"
 #include <sys/stat.h>
 
 #include "uucp.h"
 #include <sys/stat.h>
@@ -17,7 +26,6 @@ static char sccsid[] = "@(#)anlwrk.c  5.6 (Berkeley) %G%";
 
 int Nfiles = 0;
 char Filent[LLEN][NAMESIZE];
 
 int Nfiles = 0;
 char Filent[LLEN][NAMESIZE];
-long fseek(), ftell();
 extern int TransferSucceeded;
 
 /*LINTLIBRARY*/
 extern int TransferSucceeded;
 
 /*LINTLIBRARY*/
@@ -61,7 +69,8 @@ register char *file, **wvec;
                        bnp = rindex(file, '/');
                        sprintf(rqstr, "%s/%s", CORRUPT, bnp ? bnp + 1 : file);
                        xmv(file, rqstr);
                        bnp = rindex(file, '/');
                        sprintf(rqstr, "%s/%s", CORRUPT, bnp ? bnp + 1 : file);
                        xmv(file, rqstr);
-                       assert("CMD FILE UNREADABLE", subfile(file), 0);
+                       syslog(LOG_WARNING, "fopen(%s) failed: %m",
+                               subfile(file));
                        unlink(subfile(file));
                        return 0;
                }
                        unlink(subfile(file));
                        return 0;
                }
@@ -187,13 +196,12 @@ register char *dir, *pre;
  *
  */
 /* LOCAL only */
  *
  */
 /* LOCAL only */
-int
 pcompar(p1, p2)
 register char *p1, *p2;
 {
        register int rc;
 
 pcompar(p1, p2)
 register char *p1, *p2;
 {
        register int rc;
 
-       /* assert: strlen(p1) and strlen(p2) are >= 5 */
+       /* strlen(p1) and strlen(p2) are >= 5 */
        p1 += strlen(p1)-5;
        p2 += strlen(p2)-5;
        /* check 'grade' */
        p1 += strlen(p1)-5;
        p2 += strlen(p2)-5;
        /* check 'grade' */