bring up to rev 5
[unix-history] / usr / src / usr.bin / ar / ar.c
index ae12912..796289c 100644 (file)
@@ -1,6 +1,18 @@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifndef lint
+static char sccsid[] = "@(#)ar.c       5.3 (Berkeley) %G%";
+#endif not lint
+
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)ar.c       4.7 (Berkeley) %G%";
-#endif
+char copyright[] =
+"@(#) Copyright (c) 1980 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif not lint
 
 /*
  * ar - portable (ascii) format version
 
 /*
  * ar - portable (ascii) format version
@@ -503,7 +515,7 @@ movefil(f)
 {
        char buf[sizeof(arbuf)+1];
 
 {
        char buf[sizeof(arbuf)+1];
 
-       sprintf(buf, "%-16s%-12ld%-6u%-6u%-8o%-10ld%-2s",
+       (void)sprintf(buf, "%-16s%-12ld%-6u%-6u%-8o%-10ld%-2s",
           trim(file),
           stbuf.st_mtime,
           (u_short)stbuf.st_uid,
           trim(file),
           stbuf.st_mtime,
           (u_short)stbuf.st_uid,