Eliminate compiler warnings from -Wall

This commit is contained in:
Archie Cobbs 1998-12-06 07:36:44 +00:00
parent e6f93514c8
commit 5d2b41cb4e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41555
11 changed files with 16 additions and 16 deletions

View File

@ -1,8 +1,8 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $Id$
# $Id: Makefile,v 1.7 1998/10/10 12:48:48 bde Exp $
PROG= ar
CFLAGS+=-I${.CURDIR}
CFLAGS+=-I${.CURDIR} -Wall
SRCS= append.c ar.c archive.c contents.c delete.c extract.c misc.c \
move.c print.c replace.c
MAN1aout=ar.1aout

View File

@ -35,7 +35,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)append.c 8.3 (Berkeley) 4/2/94";
static const char sccsid[] = "@(#)append.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>

View File

@ -33,17 +33,17 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: ar.c,v 1.6 1997/06/23 06:41:30 charnier Exp $
*/
#ifndef lint
static char copyright[] =
static const char copyright[] =
"@(#) Copyright (c) 1990, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
static char sccsid[] = "@(#)ar.c 8.3 (Berkeley) 4/2/94";
static const char sccsid[] = "@(#)ar.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>
@ -80,7 +80,7 @@ main(argc, argv)
{
int c;
char *p;
int (*fcall) __P((char **));
int (*fcall) __P((char **)) = NULL;
(void) setlocale(LC_TIME, "");;

View File

@ -35,7 +35,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)archive.c 8.3 (Berkeley) 4/2/94";
static const char sccsid[] = "@(#)archive.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>
@ -279,7 +279,7 @@ copy_ar(cfp, size)
{
static char pad = '\n';
off_t sz;
int from, nr, nw, off, to;
int from, nr = 0, nw, off, to;
char buf[8*1024];
if (!(sz = size))

View File

@ -35,7 +35,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)contents.c 8.3 (Berkeley) 4/2/94";
static const char sccsid[] = "@(#)contents.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>

View File

@ -35,7 +35,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)delete.c 8.3 (Berkeley) 4/2/94";
static const char sccsid[] = "@(#)delete.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>

View File

@ -35,7 +35,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)extract.c 8.3 (Berkeley) 4/2/94";
static const char sccsid[] = "@(#)extract.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>

View File

@ -35,7 +35,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
static const char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>

View File

@ -35,7 +35,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)move.c 8.3 (Berkeley) 4/2/94";
static const char sccsid[] = "@(#)move.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>

View File

@ -35,7 +35,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)print.c 8.3 (Berkeley) 4/2/94";
static const char sccsid[] = "@(#)print.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>

View File

@ -35,7 +35,7 @@
*/
#ifndef lint
static char sccsid[] = "@(#)replace.c 8.3 (Berkeley) 4/2/94";
static const char sccsid[] = "@(#)replace.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
#include <sys/param.h>