De-__P().
Consistently pass 'int *' arguments to parsebootfile.
This commit is contained in:
parent
8748cff236
commit
c3455f1205
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: devopen.c,v 1.8 2005/06/22 20:36:17 junyoung Exp $ */
|
||||
/* $NetBSD: devopen.c,v 1.9 2005/06/22 20:42:45 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -71,7 +71,7 @@ static struct {
|
|||
};
|
||||
#define NUMBIOSDEVS (sizeof(biosdevtab) / sizeof(biosdevtab[0]))
|
||||
|
||||
static int dev2bios __P((char *, unsigned int, int *));
|
||||
static int dev2bios(char *, unsigned int, int *);
|
||||
|
||||
static int
|
||||
dev2bios(devname, unit, biosdev)
|
||||
|
@ -101,7 +101,7 @@ devopen(f, fname, file)
|
|||
{
|
||||
char *devname;
|
||||
char *fsmode;
|
||||
unsigned int unit, partition;
|
||||
int unit, partition;
|
||||
int biosdev;
|
||||
int error;
|
||||
struct devsw *dp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.20 2005/06/22 20:36:17 junyoung Exp $ */
|
||||
/* $NetBSD: main.c,v 1.21 2005/06/22 20:42:45 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996, 1997
|
||||
|
@ -45,7 +45,7 @@
|
|||
#include <libi386.h>
|
||||
|
||||
#ifdef SUPPORT_LYNX
|
||||
extern int exec_lynx __P((const char*, int));
|
||||
extern int exec_lynx(const char*, int);
|
||||
#endif
|
||||
|
||||
int errno;
|
||||
|
@ -60,17 +60,17 @@ static char *default_devname;
|
|||
static int default_unit, default_partition;
|
||||
static char *default_filename;
|
||||
|
||||
char *sprint_bootsel __P((const char *));
|
||||
static void bootit __P((const char *, int, int));
|
||||
void usage __P((void));
|
||||
int main __P((int, char **));
|
||||
char *sprint_bootsel(const char *);
|
||||
static void bootit(const char *, int, int);
|
||||
void usage(void);
|
||||
int main(int, char **);
|
||||
|
||||
void command_help __P((char *));
|
||||
void command_ls __P((char *));
|
||||
void command_quit __P((char *));
|
||||
void command_boot __P((char *));
|
||||
void command_mode __P((char *));
|
||||
void command_dev __P((char *));
|
||||
void command_help(char *);
|
||||
void command_ls(char *);
|
||||
void command_quit(char *);
|
||||
void command_boot(char *);
|
||||
void command_mode(char *);
|
||||
void command_dev(char *);
|
||||
|
||||
const struct bootblk_command commands[] = {
|
||||
{ "help", command_help },
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.7 2003/06/23 14:48:37 martin Exp $ */
|
||||
/* $NetBSD: main.c,v 1.8 2005/06/22 20:42:45 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -68,7 +68,7 @@ const struct bootblk_command commands[] = {
|
|||
#ifdef COMPAT_OLDBOOT
|
||||
int
|
||||
parsebootfile(const char *fname, char **fsname, char **devname,
|
||||
u_int *unit, u_int *partition, const char **file)
|
||||
int *unit, int *partition, const char **file)
|
||||
{
|
||||
return (EINVAL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue