=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ar/Attic/archive.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/ar/Attic/archive.c 2003/06/03 02:56:05 1.9 --- src/usr.bin/ar/Attic/archive.c 2003/06/12 20:58:08 1.10 *************** *** 1,4 **** ! /* $OpenBSD: archive.c,v 1.9 2003/06/03 02:56:05 millert Exp $ */ /* $NetBSD: archive.c,v 1.7 1995/03/26 03:27:46 glass Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: archive.c,v 1.10 2003/06/12 20:58:08 deraadt Exp $ */ /* $NetBSD: archive.c,v 1.7 1995/03/26 03:27:46 glass Exp $ */ /*- *************** *** 37,43 **** #if 0 static char sccsid[] = "@(#)archive.c 8.3 (Berkeley) 4/2/94"; #else ! static char rcsid[] = "$OpenBSD: archive.c,v 1.9 2003/06/03 02:56:05 millert Exp $"; #endif #endif /* not lint */ --- 37,43 ---- #if 0 static char sccsid[] = "@(#)archive.c 8.3 (Berkeley) 4/2/94"; #else ! static char rcsid[] = "$OpenBSD: archive.c,v 1.10 2003/06/12 20:58:08 deraadt Exp $"; #endif #endif /* not lint */ *************** *** 61,68 **** static char hb[sizeof(HDR) + 1]; /* real header */ int ! open_archive(mode) ! int mode; { int created, fd, nr; char buf[SARMAG]; --- 61,67 ---- static char hb[sizeof(HDR) + 1]; /* real header */ int ! open_archive(int mode) { int created, fd, nr; char buf[SARMAG]; *************** *** 110,117 **** } void ! close_archive(fd) ! int fd; { (void)close(fd); /* Implicit unlock. */ --- 109,115 ---- } void ! close_archive(int fd) { (void)close(fd); /* Implicit unlock. */ *************** *** 129,136 **** * read the archive header for this member */ int ! get_arobj(fd) ! int fd; { struct ar_hdr *hdr; int len, nr; --- 127,133 ---- * read the archive header for this member */ int ! get_arobj(int fd) { struct ar_hdr *hdr; int len, nr; *************** *** 197,205 **** * Write an archive member to a file. */ void ! put_arobj(cfp, sb) ! CF *cfp; ! struct stat *sb; { int lname; char *name; --- 194,200 ---- * Write an archive member to a file. */ void ! put_arobj(CF *cfp, struct stat *sb) { int lname; char *name; *************** *** 290,298 **** * have been ripped out long ago. */ void ! copy_ar(cfp, size) ! CF *cfp; ! off_t size; { static char pad = '\n'; off_t sz; --- 285,291 ---- * have been ripped out long ago. */ void ! copy_ar(CF *cfp, off_t size) { static char pad = '\n'; off_t sz; *************** *** 333,340 **** * Skip over an object -- taking care to skip the pad bytes. */ void ! skip_arobj(fd) ! int fd; { off_t len; --- 326,332 ---- * Skip over an object -- taking care to skip the pad bytes. */ void ! skip_arobj(int fd) { off_t len;