fix some egcs warnings

This commit is contained in:
hubertf 1998-10-04 01:48:15 +00:00
parent 8096c25afc
commit 4cc256a5d1
5 changed files with 15 additions and 15 deletions

View File

@ -1,11 +1,11 @@
/* $NetBSD: main.c,v 1.5 1998/10/03 16:24:07 hubertf Exp $ */
/* $NetBSD: main.c,v 1.6 1998/10/04 01:48:15 hubertf Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char *rcsid = "from FreeBSD Id: main.c,v 1.16 1997/10/08 07:45:43 charnier Exp";
#else
__RCSID("$NetBSD: main.c,v 1.5 1998/10/03 16:24:07 hubertf Exp $");
__RCSID("$NetBSD: main.c,v 1.6 1998/10/04 01:48:15 hubertf Exp $");
#endif
#endif
@ -137,7 +137,7 @@ main(int argc, char **argv)
if (Verbose)
printf("Using %s for %s\n",s, *argv);
pkgs[ch] - realpath(s, pkgnames[ch]);
pkgs[ch] = realpath(s, pkgnames[ch]);
} else {
/* look for the file(pattern) in the expected places */
if (!(cp = fileFindByPath(NULL, *argv)))

View File

@ -1,11 +1,11 @@
/* $NetBSD: perform.c,v 1.22 1998/10/03 16:24:08 hubertf Exp $ */
/* $NetBSD: perform.c,v 1.23 1998/10/04 01:48:15 hubertf Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp";
#else
__RCSID("$NetBSD: perform.c,v 1.22 1998/10/03 16:24:08 hubertf Exp $");
__RCSID("$NetBSD: perform.c,v 1.23 1998/10/04 01:48:15 hubertf Exp $");
#endif
#endif
@ -261,7 +261,7 @@ pkg_do(char *pkg)
char installed[FILENAME_MAX];
char *s;
if (s=strrchr(PkgName, '-')){
if ((s=strrchr(PkgName, '-')) != NULL){
strcpy(buf, PkgName);
buf[s-PkgName+1]='*';
buf[s-PkgName+2]='\0';

View File

@ -1,11 +1,11 @@
/* $NetBSD: perform.c,v 1.6 1998/10/03 16:24:08 hubertf Exp $ */
/* $NetBSD: perform.c,v 1.7 1998/10/04 01:48:15 hubertf Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.15 1997/10/13 15:03:52 jkh Exp";
#else
__RCSID("$NetBSD: perform.c,v 1.6 1998/10/03 16:24:08 hubertf Exp $");
__RCSID("$NetBSD: perform.c,v 1.7 1998/10/04 01:48:15 hubertf Exp $");
#endif
#endif
@ -183,7 +183,6 @@ undepend(const char *deppkgname, char *pkg2delname)
{
char fname[FILENAME_MAX], ftmp[FILENAME_MAX];
char fbuf[FILENAME_MAX];
char dep[FILENAME_MAX];
FILE *fp, *fpwr;
char *tmp;
int s;

View File

@ -1,11 +1,11 @@
/* $NetBSD: perform.c,v 1.12 1998/10/03 16:24:08 hubertf Exp $ */
/* $NetBSD: perform.c,v 1.13 1998/10/04 01:48:15 hubertf Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.23 1997/10/13 15:03:53 jkh Exp";
#else
__RCSID("$NetBSD: perform.c,v 1.12 1998/10/03 16:24:08 hubertf Exp $");
__RCSID("$NetBSD: perform.c,v 1.13 1998/10/04 01:48:15 hubertf Exp $");
#endif
#endif
@ -175,7 +175,8 @@ bail:
}
/* fn to be called for pkgs found */
int foundpkg(const char *found, char *data)
static int
foundpkg(const char *found, char *data)
{
if(!Quiet)
printf("%s\n", found);

View File

@ -1,11 +1,11 @@
/* $NetBSD: file.c,v 1.16 1998/10/03 16:24:08 hubertf Exp $ */
/* $NetBSD: file.c,v 1.17 1998/10/04 01:48:16 hubertf Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: file.c,v 1.29 1997/10/08 07:47:54 charnier Exp";
#else
__RCSID("$NetBSD: file.c,v 1.16 1998/10/03 16:24:08 hubertf Exp $");
__RCSID("$NetBSD: file.c,v 1.17 1998/10/04 01:48:16 hubertf Exp $");
#endif
#endif
@ -316,7 +316,7 @@ fileFindByPath(char *base, char *fname)
char *cp;
if (ispkgpattern(fname)) {
if (cp=findbestmatchingname(".",fname)) {
if ((cp=findbestmatchingname(".",fname)) != NULL) {
strcpy (tmp, cp);
return tmp;
}