WARNSify
This commit is contained in:
parent
fcfec169df
commit
593df3da4c
@ -1,4 +1,4 @@
|
|||||||
.\" $NetBSD: mdsetimage.8,v 1.3 1997/09/30 06:20:17 scottr Exp $
|
.\" $NetBSD: mdsetimage.8,v 1.4 1997/10/17 10:28:39 lukem Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
.\" Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
@ -35,14 +35,14 @@
|
|||||||
.Nm mdsetimage
|
.Nm mdsetimage
|
||||||
.Nd set kernel RAM disk image
|
.Nd set kernel RAM disk image
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm mdsetimage
|
.Nm
|
||||||
.Op Fl T Ar address
|
.Op Fl T Ar address
|
||||||
.Op Fl v
|
.Op Fl v
|
||||||
.Ar kernel
|
.Ar kernel
|
||||||
.Ar image
|
.Ar image
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Nm mdsetimage
|
.Nm
|
||||||
command copies the disk image specified by
|
command copies the disk image specified by
|
||||||
.Ar image
|
.Ar image
|
||||||
into the memory disk storage area in
|
into the memory disk storage area in
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: mdsetimage.c,v 1.5 1997/09/30 06:20:18 scottr Exp $ */
|
/* $NetBSD: mdsetimage.c,v 1.6 1997/10/17 10:28:44 lukem Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||||
@ -30,13 +30,15 @@
|
|||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
__COPYRIGHT(
|
||||||
"@(#) Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.\n";
|
"@(#) Copyright (c) 1996 Christopher G. Demetriou.\
|
||||||
|
All rights reserved.\n");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char *rcsid = "$NetBSD: mdsetimage.c,v 1.5 1997/09/30 06:20:18 scottr Exp $";
|
__RCSID("$NetBSD: mdsetimage.c,v 1.6 1997/10/17 10:28:44 lukem Exp $");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -48,6 +50,7 @@ static char *rcsid = "$NetBSD: mdsetimage.c,v 1.5 1997/09/30 06:20:18 scottr Exp
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <nlist.h>
|
#include <nlist.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "extern.h"
|
#include "extern.h"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: callout.c,v 1.3 1995/12/10 10:06:56 mycroft Exp $ */
|
/* $NetBSD: callout.c,v 1.4 1997/10/17 10:37:55 lukem Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The mrouted program is covered by the license in the accompanying file
|
* The mrouted program is covered by the license in the accompanying file
|
||||||
@ -31,6 +31,8 @@ static void print_Q __P((void));
|
|||||||
#define print_Q()
|
#define print_Q()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int secs_remaining __P((int));
|
||||||
|
|
||||||
void
|
void
|
||||||
callout_init()
|
callout_init()
|
||||||
{
|
{
|
||||||
@ -208,8 +210,9 @@ print_Q()
|
|||||||
log(LOG_DEBUG,0,"(%d,%d) ", ptr->id, ptr->time);
|
log(LOG_DEBUG,0,"(%d,%d) ", ptr->id, ptr->time);
|
||||||
}
|
}
|
||||||
#endif /* IGMP_DEBUG */
|
#endif /* IGMP_DEBUG */
|
||||||
|
|
||||||
int
|
int
|
||||||
secs_remaining( timer_id)
|
secs_remaining(timer_id)
|
||||||
int timer_id;
|
int timer_id;
|
||||||
{
|
{
|
||||||
struct timeout_q *ptr;
|
struct timeout_q *ptr;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: defs.h,v 1.6 1995/12/10 10:06:59 mycroft Exp $ */
|
/* $NetBSD: defs.h,v 1.7 1997/10/17 10:38:03 lukem Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The mrouted program is covered by the license in the accompanying file
|
* The mrouted program is covered by the license in the accompanying file
|
||||||
@ -240,6 +240,7 @@ extern void config_vifs_from_file __P((void));
|
|||||||
|
|
||||||
/* inet.c */
|
/* inet.c */
|
||||||
extern int inet_valid_host __P((u_int32_t naddr));
|
extern int inet_valid_host __P((u_int32_t naddr));
|
||||||
|
extern int inet_valid_mask __P((u_int32_t mask));
|
||||||
extern int inet_valid_subnet __P((u_int32_t nsubnet, u_int32_t nmask));
|
extern int inet_valid_subnet __P((u_int32_t nsubnet, u_int32_t nmask));
|
||||||
extern char * inet_fmt __P((u_int32_t addr, char *s));
|
extern char * inet_fmt __P((u_int32_t addr, char *s));
|
||||||
extern char * inet_fmts __P((u_int32_t addr, u_int32_t mask, char *s));
|
extern char * inet_fmts __P((u_int32_t addr, u_int32_t mask, char *s));
|
||||||
@ -273,6 +274,7 @@ extern void accept_g_ack __P((u_int32_t src, u_int32_t dst, char *p,
|
|||||||
extern void accept_mtrace __P((u_int32_t src, u_int32_t dst,
|
extern void accept_mtrace __P((u_int32_t src, u_int32_t dst,
|
||||||
u_int32_t group, char *data, u_int no,
|
u_int32_t group, char *data, u_int no,
|
||||||
int datalen));
|
int datalen));
|
||||||
|
extern int find_src_grp __P((u_int32_t, u_int32_t, u_int32_t));
|
||||||
|
|
||||||
/* kern.c */
|
/* kern.c */
|
||||||
extern void k_set_rcvbuf __P((int bufsize));
|
extern void k_set_rcvbuf __P((int bufsize));
|
||||||
@ -311,3 +313,10 @@ extern void rsrr_clean __P((void));
|
|||||||
extern void rsrr_cache_send __P((struct gtable *gt, int notify));
|
extern void rsrr_cache_send __P((struct gtable *gt, int notify));
|
||||||
extern void rsrr_cache_clean __P((struct gtable *gt));
|
extern void rsrr_cache_clean __P((struct gtable *gt));
|
||||||
#endif /* RSRR */
|
#endif /* RSRR */
|
||||||
|
|
||||||
|
/* vif.c */
|
||||||
|
extern void accept_info_reply __P((u_int32_t, u_int32_t,
|
||||||
|
u_char *, int));
|
||||||
|
extern void accept_info_request __P((u_int32_t, u_int32_t,
|
||||||
|
u_char *, int));
|
||||||
|
extern void init_installvifs __P((void));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: igmp.c,v 1.5 1995/12/10 10:07:01 mycroft Exp $ */
|
/* $NetBSD: igmp.c,v 1.6 1997/10/17 10:38:10 lukem Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The mrouted program is covered by the license in the accompanying file
|
* The mrouted program is covered by the license in the accompanying file
|
||||||
@ -311,6 +311,7 @@ send_igmp(src, dst, type, code, group, datalen)
|
|||||||
struct igmp *igmp;
|
struct igmp *igmp;
|
||||||
int setloop;
|
int setloop;
|
||||||
|
|
||||||
|
setloop = 0;
|
||||||
ip = (struct ip *)send_buf;
|
ip = (struct ip *)send_buf;
|
||||||
ip->ip_src.s_addr = src;
|
ip->ip_src.s_addr = src;
|
||||||
ip->ip_dst.s_addr = dst;
|
ip->ip_dst.s_addr = dst;
|
||||||
|
Loading…
Reference in New Issue
Block a user