const poisoning.

This commit is contained in:
mycroft 1998-07-26 20:23:15 +00:00
parent 1c30ddba45
commit 0e3ffd8405
4 changed files with 18 additions and 17 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: extern.h,v 1.1 1997/06/11 11:21:46 bouyer Exp $ */
/* $NetBSD: extern.h,v 1.2 1998/07/26 20:27:20 mycroft Exp $ */
/*
* Copyright (c) 1997 Manuel Bouyer.
@ -68,7 +68,7 @@ void pinode __P((ino_t));
void propagate __P((void));
int reply __P((char *));
void resetinodebuf __P((void));
int setup __P((char *));
int setup __P((const char *));
struct ext2fs_dinode * getnextinode __P((ino_t));
void catch __P((int));
void catchquit __P((int));

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.5 1998/04/01 15:24:12 kleink Exp $ */
/* $NetBSD: main.c,v 1.6 1998/07/26 20:27:20 mycroft Exp $ */
/*
* Copyright (c) 1997 Manuel Bouyer.
@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1986, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/23/94";
#else
__RCSID("$NetBSD: main.c,v 1.5 1998/04/01 15:24:12 kleink Exp $");
__RCSID("$NetBSD: main.c,v 1.6 1998/07/26 20:27:20 mycroft Exp $");
#endif
#endif /* not lint */
@ -71,7 +71,7 @@ int returntosingle;
int main __P((int, char *[]));
static int argtoi __P((int, char *, char *, int));
static int checkfilesys __P((char *, char *, long, int));
static int checkfilesys __P((const char *, char *, long, int));
static void usage __P((void));
@ -168,7 +168,8 @@ argtoi(flag, req, str, base)
/* ARGSUSED */
static int
checkfilesys(filesys, mntpt, auxdata, child)
char *filesys, *mntpt;
const char *filesys;
char *mntpt;
long auxdata;
int child;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: setup.c,v 1.6 1997/10/09 13:19:40 bouyer Exp $ */
/* $NetBSD: setup.c,v 1.7 1998/07/26 20:27:20 mycroft Exp $ */
/*
* Copyright (c) 1997 Manuel Bouyer.
@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)setup.c 8.5 (Berkeley) 11/23/94";
#else
__RCSID("$NetBSD: setup.c,v 1.6 1997/10/09 13:19:40 bouyer Exp $");
__RCSID("$NetBSD: setup.c,v 1.7 1998/07/26 20:27:20 mycroft Exp $");
#endif
#endif /* not lint */
@ -66,13 +66,13 @@ __RCSID("$NetBSD: setup.c,v 1.6 1997/10/09 13:19:40 bouyer Exp $");
#define POWEROF2(num) (((num) & ((num) - 1)) == 0)
void badsb __P((int, char *));
int calcsb __P((char *, int, struct m_ext2fs *));
static struct disklabel *getdisklabel __P((char *, int));
int calcsb __P((const char *, int, struct m_ext2fs *));
static struct disklabel *getdisklabel __P((const char *, int));
static int readsb __P((int));
int
setup(dev)
char *dev;
const char *dev;
{
long cg, asked, i;
long bmapsize;
@ -440,7 +440,7 @@ badsb(listerr, s)
int
calcsb(dev, devfd, fs)
char *dev;
const char *dev;
int devfd;
struct m_ext2fs *fs;
{
@ -485,7 +485,7 @@ calcsb(dev, devfd, fs)
static struct disklabel *
getdisklabel(s, fd)
char *s;
const char *s;
int fd;
{
static struct disklabel lab;

View File

@ -1,4 +1,4 @@
/* $NetBSD: swapctl.c,v 1.8 1998/02/10 03:14:33 mrg Exp $ */
/* $NetBSD: swapctl.c,v 1.9 1998/07/26 20:23:15 mycroft Exp $ */
/*
* Copyright (c) 1996, 1997 Matthew R. Green
@ -354,7 +354,7 @@ do_fstab()
#define NFSMNTPT "nfsmntpt="
#define PATH_MOUNT "/sbin/mount_nfs"
while ((fp = getfsent()) != NULL) {
char *spec;
const char *spec;
if (strcmp(fp->fs_type, "sw") != 0)
continue;
@ -391,7 +391,7 @@ do_fstab()
if (strlen(spec) == 0) {
warnx("empty mountpoint");
free(spec);
free((char *)spec);
continue;
}
snprintf(cmd, sizeof(cmd), "%s %s %s",
@ -431,7 +431,7 @@ do_fstab()
}
if (spec != fp->fs_spec)
free(spec);
free((char *)spec);
}
if (gotone == 0)
exit(1);