prettyness police
[unix-history] / usr / src / usr.bin / ar / delete.c
index 486f226..f031f3d 100644 (file)
@@ -9,30 +9,29 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)delete.c   8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)delete.c   8.2 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #include <sys/stat.h>
 #endif /* not lint */
 
 #include <sys/param.h>
 #include <sys/stat.h>
-#include <fcntl.h>
+
+#include <ar.h>
 #include <dirent.h>
 #include <dirent.h>
-#include <unistd.h>
+#include <fcntl.h>
 #include <stdio.h>
 #include <stdio.h>
-#include <ar.h>
+#include <unistd.h>
+
 #include "archive.h"
 #include "extern.h"
 #include "pathnames.h"
 
 #include "archive.h"
 #include "extern.h"
 #include "pathnames.h"
 
-extern CHDR chdr;                      /* converted header */
-extern char *archive;                  /* archive name */
-extern char *tname;                     /* temporary file "name" */
-
 /*-
  * delete --
  *     Deletes named members from the archive.
  */
 /*-
  * delete --
  *     Deletes named members from the archive.
  */
+int
 delete(argv)
 delete(argv)
-       register char **argv;
+       char **argv;
 {
        CF cf;
        off_t size;
 {
        CF cf;
        off_t size;
@@ -65,7 +64,7 @@ delete(argv)
 
        if (*argv) {
                orphans(argv);
 
        if (*argv) {
                orphans(argv);
-               return(1);
+               return (1);
        }
        }
-       return(0);
+       return (0);
 }      
 }