clean up WARNS on the alpha.
This commit is contained in:
parent
8494c2cf67
commit
395c20ea27
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: crt0.c,v 1.8 1997/10/09 12:29:21 lukem Exp $ */
|
||||
/* $NetBSD: crt0.c,v 1.9 1997/10/10 08:45:29 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Christopher G. Demetriou
|
||||
@ -98,6 +98,7 @@ extern unsigned char _etext, _eprol;
|
||||
|
||||
void __start __P((char **, void (*cleanup) __P((void)), const Obj_Entry *,
|
||||
struct ps_strings *));
|
||||
int main __P((int, char **, char **));
|
||||
|
||||
void
|
||||
__start(sp, cleanup, obj, ps_strings)
|
||||
|
@ -1,12 +1,14 @@
|
||||
/* $NetBSD: crtend.c,v 1.1 1996/09/12 16:59:04 cgd Exp $ */
|
||||
/* $NetBSD: crtend.c,v 1.2 1997/10/10 08:45:30 mrg Exp $ */
|
||||
|
||||
#ifndef ECOFF_COMPAT
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
static void (*__CTOR_LIST__[1]) __P((void))
|
||||
__attribute__((__unused__))
|
||||
__attribute__((section(".ctors"))) = { (void *)0 }; /* XXX */
|
||||
static void (*__DTOR_LIST__[1]) __P((void))
|
||||
__attribute__((__unused__))
|
||||
__attribute__((section(".dtors"))) = { (void *)0 }; /* XXX */
|
||||
|
||||
#endif /* !ECOFF_COMPAT */
|
||||
|
@ -1,12 +1,14 @@
|
||||
/* $NetBSD: crtend.c,v 1.1 1996/09/12 16:59:04 cgd Exp $ */
|
||||
/* $NetBSD: crtend.c,v 1.2 1997/10/10 08:45:30 mrg Exp $ */
|
||||
|
||||
#ifndef ECOFF_COMPAT
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
static void (*__CTOR_LIST__[1]) __P((void))
|
||||
__attribute__((__unused__))
|
||||
__attribute__((section(".ctors"))) = { (void *)0 }; /* XXX */
|
||||
static void (*__DTOR_LIST__[1]) __P((void))
|
||||
__attribute__((__unused__))
|
||||
__attribute__((section(".dtors"))) = { (void *)0 }; /* XXX */
|
||||
|
||||
#endif /* !ECOFF_COMPAT */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kvm.c,v 1.53 1997/08/15 02:21:56 mikel Exp $ */
|
||||
/* $NetBSD: kvm.c,v 1.54 1997/10/10 08:45:31 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1989, 1992, 1993
|
||||
@ -42,7 +42,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: kvm.c,v 1.53 1997/08/15 02:21:56 mikel Exp $");
|
||||
__RCSID("$NetBSD: kvm.c,v 1.54 1997/10/10 08:45:31 mrg Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -446,7 +446,7 @@ fail:
|
||||
kd->cpu_data = NULL;
|
||||
kd->cpu_dsize = 0;
|
||||
}
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kvm_alpha.c,v 1.6 1997/08/12 16:34:07 gwr Exp $ */
|
||||
/* $NetBSD: kvm_alpha.c,v 1.7 1997/10/10 08:45:32 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||
@ -42,6 +42,7 @@
|
||||
|
||||
#include <limits.h>
|
||||
#include <db.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "kvm_private.h"
|
||||
|
||||
@ -134,7 +135,7 @@ _kvm_kvatop(kd, va, pa)
|
||||
_kvm_err(kd, 0, "invalid translation (invalid L3 PTE)");
|
||||
goto lose;
|
||||
}
|
||||
*pa = ALPHA_PTE_TO_PFN(pte) * cpu_kh->page_size + page_off;
|
||||
*pa = ALPHA_PTE_TO_PFN(pte) * cpu_kh->page_size + page_off +
|
||||
vatopte(va) * sizeof(alpha_pt_entry_t);
|
||||
rv = cpu_kh->page_size - page_off;
|
||||
} else {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rmtlib.c,v 1.7 1997/10/09 11:58:19 lukem Exp $ */
|
||||
/* $NetBSD: rmtlib.c,v 1.8 1997/10/10 08:45:33 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* rmt --- remote tape emulator subroutines
|
||||
@ -502,7 +502,8 @@ _rmt_lseek(fildes, offset, whence)
|
||||
{
|
||||
char buffer[BUFMAGIC];
|
||||
|
||||
(void)snprintf(buffer, sizeof buffer, "L%qd\n%d\n", offset, whence);
|
||||
(void)snprintf(buffer, sizeof buffer, "L%qd\n%d\n", (long long)offset,
|
||||
whence);
|
||||
if (command(fildes, buffer) == -1)
|
||||
return(-1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user