fix old style definitions; XXX: gcc should have picked them up but it did not.

This commit is contained in:
christos 2012-06-24 15:26:02 +00:00
parent 39b8d4bd9a
commit 3d365e7447
22 changed files with 75 additions and 75 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetround.c,v 1.4 2006/02/25 02:28:55 wiz Exp $ */
/* $NetBSD: fpgetround.c,v 1.5 2012/06/24 15:26:02 christos Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe
@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: fpgetround.c,v 1.4 2006/02/25 02:28:55 wiz Exp $");
__RCSID("$NetBSD: fpgetround.c,v 1.5 2012/06/24 15:26:02 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -65,7 +65,7 @@ __weak_alias(fpgetround,_fpgetround)
*/
fp_rnd
fpgetround()
fpgetround(void)
{
return(FP_RN);

View File

@ -1,4 +1,4 @@
/* $NetBSD: flt_rounds.c,v 1.6 2010/09/03 17:22:51 matt Exp $ */
/* $NetBSD: flt_rounds.c,v 1.7 2012/06/24 15:26:02 christos Exp $ */
/*
* Written by J.T. Conklin, Apr 11, 1995
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: flt_rounds.c,v 1.6 2010/09/03 17:22:51 matt Exp $");
__RCSID("$NetBSD: flt_rounds.c,v 1.7 2012/06/24 15:26:02 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include <machine/float.h>
@ -21,7 +21,7 @@ static const int map[] = {
};
int
__flt_rounds()
__flt_rounds(void)
{
#ifdef SOFTFLOAT_FOR_GCC
return map[fpgetround()];

View File

@ -1,4 +1,4 @@
/* $NetBSD: flt_rounds.c,v 1.5 2012/03/17 21:35:06 martin Exp $ */
/* $NetBSD: flt_rounds.c,v 1.6 2012/06/24 15:26:02 christos Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: flt_rounds.c,v 1.5 2012/03/17 21:35:06 martin Exp $");
__RCSID("$NetBSD: flt_rounds.c,v 1.6 2012/06/24 15:26:02 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@ -21,7 +21,7 @@ static const int map[] = {
};
int
__flt_rounds()
__flt_rounds(void)
{
uint32_t x;

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetmask.c,v 1.5 2012/03/17 21:35:06 martin Exp $ */
/* $NetBSD: fpgetmask.c,v 1.6 2012/06/24 15:26:02 christos Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: fpgetmask.c,v 1.5 2012/03/17 21:35:06 martin Exp $");
__RCSID("$NetBSD: fpgetmask.c,v 1.6 2012/06/24 15:26:02 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -20,7 +20,7 @@ __weak_alias(fpgetmask,_fpgetmask)
#endif
fp_except
fpgetmask()
fpgetmask(void)
{
uint32_t x;

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetround.c,v 1.5 2012/03/17 21:35:06 martin Exp $ */
/* $NetBSD: fpgetround.c,v 1.6 2012/06/24 15:26:02 christos Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: fpgetround.c,v 1.5 2012/03/17 21:35:06 martin Exp $");
__RCSID("$NetBSD: fpgetround.c,v 1.6 2012/06/24 15:26:02 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -20,7 +20,7 @@ __weak_alias(fpgetround,_fpgetround)
#endif
fp_rnd
fpgetround()
fpgetround(void)
{
uint32_t x;

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetsticky.c,v 1.6 2012/03/17 21:35:06 martin Exp $ */
/* $NetBSD: fpgetsticky.c,v 1.7 2012/06/24 15:26:02 christos Exp $ */
/*
* Written by J.T. Conklin, Apr 10, 1995
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: fpgetsticky.c,v 1.6 2012/03/17 21:35:06 martin Exp $");
__RCSID("$NetBSD: fpgetsticky.c,v 1.7 2012/06/24 15:26:02 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -24,7 +24,7 @@ extern fp_except _softfloat_float_exception_flags;
#endif
fp_except
fpgetsticky()
fpgetsticky(void)
{
uint32_t x;
fp_except res;

View File

@ -1,4 +1,4 @@
/* $NetBSD: getdtablesize.c,v 1.9 2003/07/26 19:24:41 salo Exp $ */
/* $NetBSD: getdtablesize.c,v 1.10 2012/06/24 15:26:03 christos Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
@ -7,14 +7,14 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: getdtablesize.c,v 1.9 2003/07/26 19:24:41 salo Exp $");
__RCSID("$NetBSD: getdtablesize.c,v 1.10 2012/06/24 15:26:03 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <unistd.h>
int
getdtablesize()
getdtablesize(void)
{
return ((int)sysconf(_SC_OPEN_MAX));
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: dlfcn_elf.c,v 1.12 2012/03/13 21:13:33 christos Exp $ */
/* $NetBSD: dlfcn_elf.c,v 1.13 2012/06/24 15:26:03 christos Exp $ */
/*
* Copyright (c) 2000 Takuya SHIOZAKI
@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: dlfcn_elf.c,v 1.12 2012/03/13 21:13:33 christos Exp $");
__RCSID("$NetBSD: dlfcn_elf.c,v 1.13 2012/06/24 15:26:03 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -123,7 +123,7 @@ dlvsym(void *handle, const char *name, const char *version)
/*ARGSUSED*/
__aconst char *
dlerror()
dlerror(void)
{
return dlfcn_error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: arithchk.c,v 1.3 2010/01/17 23:06:31 wiz Exp $ */
/* $NetBSD: arithchk.c,v 1.4 2012/06/24 15:26:03 christos Exp $ */
/****************************************************************
Copyright (C) 1997, 1998 Lucent Technologies
@ -28,22 +28,22 @@ THIS SOFTWARE.
#include <stdio.h>
static int dalign;
typedef struct
static int dalign;
typedef struct
Akind {
char *name;
int kind;
} Akind;
static Akind
static Akind
IEEE_LITTLE_ENDIAN = { "IEEE_LITTLE_ENDIAN", 1 },
IEEE_BIG_ENDIAN = { "IEEE_BIG_ENDIAN", 2 },
IBM = { "IBM", 3 },
VAX = { "VAX", 4 },
CRAY = { "CRAY", 5};
static Akind *
Lcheck()
static Akind *
Lcheck(void)
{
union {
double d;
@ -69,8 +69,8 @@ Lcheck()
return 0;
}
static Akind *
icheck()
static Akind *
icheck(void)
{
union {
double d;
@ -98,8 +98,8 @@ icheck()
char *emptyfmt = ""; /* avoid possible warning message with printf("") */
static Akind *
ccheck()
static Akind *
ccheck(void)
{
union {
double d;
@ -119,8 +119,8 @@ ccheck()
return 0;
}
static int
fzcheck()
static int
fzcheck(void)
{
double a, b;
int i;
@ -138,8 +138,8 @@ fzcheck()
return b == 0.;
}
int
main()
int
main(void)
{
Akind *a = 0;
int Ldef = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: Lint_flt_rounds.c,v 1.2 2000/06/14 06:49:05 cgd Exp $ */
/* $NetBSD: Lint_flt_rounds.c,v 1.3 2012/06/24 15:26:03 christos Exp $ */
/*
* This file placed in the public domain.
@ -7,7 +7,7 @@
/*ARGSUSED*/
int
__flt_rounds()
__flt_rounds(void)
{
return (0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: Lint_fpgetmask.c,v 1.2 2000/06/14 06:49:05 cgd Exp $ */
/* $NetBSD: Lint_fpgetmask.c,v 1.3 2012/06/24 15:26:03 christos Exp $ */
/*
* This file placed in the public domain.
@ -9,7 +9,7 @@
/*ARGSUSED*/
fp_except
fpgetmask()
fpgetmask(void)
{
fp_except rv = { 0 };

View File

@ -1,4 +1,4 @@
/* $NetBSD: Lint_fpgetround.c,v 1.2 2000/06/14 06:49:05 cgd Exp $ */
/* $NetBSD: Lint_fpgetround.c,v 1.3 2012/06/24 15:26:03 christos Exp $ */
/*
* This file placed in the public domain.
@ -9,7 +9,7 @@
/*ARGSUSED*/
fp_rnd
fpgetround()
fpgetround(void)
{
fp_rnd rv = { 0 };

View File

@ -1,4 +1,4 @@
/* $NetBSD: Lint_fpgetsticky.c,v 1.2 2000/06/14 06:49:05 cgd Exp $ */
/* $NetBSD: Lint_fpgetsticky.c,v 1.3 2012/06/24 15:26:03 christos Exp $ */
/*
* This file placed in the public domain.
@ -9,7 +9,7 @@
/*ARGSUSED*/
fp_except
fpgetsticky()
fpgetsticky(void)
{
fp_except rv = { 0 };

View File

@ -1,4 +1,4 @@
/* $NetBSD: getpagesize.c,v 1.10 2009/12/14 01:04:46 matt Exp $ */
/* $NetBSD: getpagesize.c,v 1.11 2012/06/24 15:26:03 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)getpagesize.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: getpagesize.c,v 1.10 2009/12/14 01:04:46 matt Exp $");
__RCSID("$NetBSD: getpagesize.c,v 1.11 2012/06/24 15:26:03 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -49,7 +49,7 @@ __weak_alias(getpagesize,_getpagesize)
#endif
int
getpagesize()
getpagesize(void)
{
static int pagsz;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pause.c,v 1.10 2003/08/07 16:42:55 agc Exp $ */
/* $NetBSD: pause.c,v 1.11 2012/06/24 15:26:03 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pause.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: pause.c,v 1.10 2003/08/07 16:42:55 agc Exp $");
__RCSID("$NetBSD: pause.c,v 1.11 2012/06/24 15:26:03 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -50,7 +50,7 @@ __weak_alias(pause,_pause)
* Backwards compatible pause.
*/
int
pause()
pause(void)
{
sigset_t omask;

View File

@ -1,4 +1,4 @@
/* $NetBSD: setjmperr.c,v 1.7 2003/08/07 16:42:56 agc Exp $ */
/* $NetBSD: setjmperr.c,v 1.8 2012/06/24 15:26:03 christos Exp $ */
/*
* Copyright (c) 1980, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)setjmperr.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: setjmperr.c,v 1.7 2003/08/07 16:42:56 agc Exp $");
__RCSID("$NetBSD: setjmperr.c,v 1.8 2012/06/24 15:26:03 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -49,7 +49,7 @@ __RCSID("$NetBSD: setjmperr.c,v 1.7 2003/08/07 16:42:56 agc Exp $");
#include <unistd.h>
void
longjmperror()
longjmperror(void)
{
#define ERRMSG "longjmp botch.\n"
(void)write(STDERR_FILENO, ERRMSG, sizeof(ERRMSG) - 1);

View File

@ -1,4 +1,4 @@
/* $NetBSD: utmpx.c,v 1.29 2012/03/13 21:13:37 christos Exp $ */
/* $NetBSD: utmpx.c,v 1.30 2012/06/24 15:26:03 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: utmpx.c,v 1.29 2012/03/13 21:13:37 christos Exp $");
__RCSID("$NetBSD: utmpx.c,v 1.30 2012/06/24 15:26:03 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -90,7 +90,7 @@ new2old(struct utmpx *utx)
}
void
setutxent()
setutxent(void)
{
(void)memset(&ut, 0, sizeof(ut));
@ -101,7 +101,7 @@ setutxent()
void
endutxent()
endutxent(void)
{
(void)memset(&ut, 0, sizeof(ut));
@ -114,7 +114,7 @@ endutxent()
struct utmpx *
getutxent()
getutxent(void)
{
if (fp == NULL) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: localeconv.c,v 1.18 2010/05/22 13:15:59 tnozaki Exp $ */
/* $NetBSD: localeconv.c,v 1.19 2012/06/24 15:26:03 christos Exp $ */
/*-
* Copyright (c)2008 Citrus Project,
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: localeconv.c,v 1.18 2010/05/22 13:15:59 tnozaki Exp $");
__RCSID("$NetBSD: localeconv.c,v 1.19 2012/06/24 15:26:03 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@ -39,7 +39,7 @@ __RCSID("$NetBSD: localeconv.c,v 1.18 2010/05/22 13:15:59 tnozaki Exp $");
#include "setlocale_local.h"
struct lconv *
localeconv()
localeconv(void)
{
return _current_cache()->ldata;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: rpc_soc.c,v 1.14 2012/03/20 17:14:50 matt Exp $ */
/* $NetBSD: rpc_soc.c,v 1.15 2012/06/24 15:26:03 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)rpc_soc.c 1.41 89/05/02 Copyr 1988 Sun Micro";
#else
__RCSID("$NetBSD: rpc_soc.c,v 1.14 2012/03/20 17:14:50 matt Exp $");
__RCSID("$NetBSD: rpc_soc.c,v 1.15 2012/06/24 15:26:03 christos Exp $");
#endif
#endif
@ -316,7 +316,7 @@ svcudp_create(fd)
}
SVCXPRT *
svcraw_create()
svcraw_create(void)
{
return svc_raw_create();
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: svc_run.c,v 1.19 2003/01/18 11:29:07 thorpej Exp $ */
/* $NetBSD: svc_run.c,v 1.20 2012/06/24 15:26:03 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -35,7 +35,7 @@
static char *sccsid = "@(#)svc_run.c 1.1 87/10/13 Copyr 1984 Sun Micro";
static char *sccsid = "@(#)svc_run.c 2.1 88/07/29 4.0 RPCSRC";
#else
__RCSID("$NetBSD: svc_run.c,v 1.19 2003/01/18 11:29:07 thorpej Exp $");
__RCSID("$NetBSD: svc_run.c,v 1.20 2012/06/24 15:26:03 christos Exp $");
#endif
#endif
@ -61,7 +61,7 @@ __weak_alias(svc_exit,_svc_exit)
#endif
void
svc_run()
svc_run(void)
{
fd_set readfds, cleanfds;
struct timeval timeout;
@ -98,7 +98,7 @@ svc_run()
* more work to do.
*/
void
svc_exit()
svc_exit(void)
{
#ifdef _REENTRANT
extern rwlock_t svc_fd_lock;

View File

@ -1,4 +1,4 @@
/* $NetBSD: rand.c,v 1.10 2003/08/07 16:43:43 agc Exp $ */
/* $NetBSD: rand.c,v 1.11 2012/06/24 15:26:03 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)rand.c 8.1 (Berkeley) 6/14/93";
#else
__RCSID("$NetBSD: rand.c,v 1.10 2003/08/07 16:43:43 agc Exp $");
__RCSID("$NetBSD: rand.c,v 1.11 2012/06/24 15:26:03 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -44,7 +44,7 @@ __RCSID("$NetBSD: rand.c,v 1.10 2003/08/07 16:43:43 agc Exp $");
static u_long next = 1;
int
rand()
rand(void)
{
/* LINTED integer overflow */
return (int)((next = next * 1103515245 + 12345) % ((u_long)RAND_MAX + 1));

View File

@ -1,4 +1,4 @@
/* $NetBSD: Lint___vfork14.c,v 1.2 2000/06/14 06:49:10 cgd Exp $ */
/* $NetBSD: Lint___vfork14.c,v 1.3 2012/06/24 15:26:03 christos Exp $ */
/*
* This file placed in the public domain.
@ -9,7 +9,7 @@
/*ARGSUSED*/
pid_t
__vfork14()
__vfork14(void)
{
return (0);
}