Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc fix old style definitions; XXX: gcc should have pic...



details:   https://anonhg.NetBSD.org/src/rev/c40017a470eb
branches:  trunk
changeset: 779877:c40017a470eb
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 24 15:26:02 2012 +0000

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

diffstat:

 lib/libc/arch/arm/hardfloat/fpgetround.c |   6 +++---
 lib/libc/arch/mips/gen/flt_rounds.c      |   6 +++---
 lib/libc/arch/sparc64/gen/flt_rounds.c   |   6 +++---
 lib/libc/arch/sparc64/gen/fpgetmask.c    |   6 +++---
 lib/libc/arch/sparc64/gen/fpgetround.c   |   6 +++---
 lib/libc/arch/sparc64/gen/fpgetsticky.c  |   6 +++---
 lib/libc/compat-43/getdtablesize.c       |   6 +++---
 lib/libc/dlfcn/dlfcn_elf.c               |   6 +++---
 lib/libc/gdtoa/arithchk.c                |  28 ++++++++++++++--------------
 lib/libc/gen/Lint_flt_rounds.c           |   4 ++--
 lib/libc/gen/Lint_fpgetmask.c            |   4 ++--
 lib/libc/gen/Lint_fpgetround.c           |   4 ++--
 lib/libc/gen/Lint_fpgetsticky.c          |   4 ++--
 lib/libc/gen/getpagesize.c               |   6 +++---
 lib/libc/gen/pause.c                     |   6 +++---
 lib/libc/gen/setjmperr.c                 |   6 +++---
 lib/libc/gen/utmpx.c                     |  10 +++++-----
 lib/libc/locale/localeconv.c             |   6 +++---
 lib/libc/rpc/rpc_soc.c                   |   6 +++---
 lib/libc/rpc/svc_run.c                   |   8 ++++----
 lib/libc/stdlib/rand.c                   |   6 +++---
 lib/libc/sys/Lint___vfork14.c            |   4 ++--
 22 files changed, 75 insertions(+), 75 deletions(-)

diffs (truncated from 629 to 300 lines):

diff -r 0265ce1b46f2 -r c40017a470eb lib/libc/arch/arm/hardfloat/fpgetround.c
--- a/lib/libc/arch/arm/hardfloat/fpgetround.c  Sun Jun 24 13:56:10 2012 +0000
+++ b/lib/libc/arch/arm/hardfloat/fpgetround.c  Sun Jun 24 15:26:02 2012 +0000
@@ -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 @@
  */
 
 fp_rnd
-fpgetround()
+fpgetround(void)
 {
 
        return(FP_RN);
diff -r 0265ce1b46f2 -r c40017a470eb lib/libc/arch/mips/gen/flt_rounds.c
--- a/lib/libc/arch/mips/gen/flt_rounds.c       Sun Jun 24 13:56:10 2012 +0000
+++ b/lib/libc/arch/mips/gen/flt_rounds.c       Sun Jun 24 15:26:02 2012 +0000
@@ -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 @@
 };
 
 int
-__flt_rounds()
+__flt_rounds(void)
 {
 #ifdef SOFTFLOAT_FOR_GCC
        return map[fpgetround()];
diff -r 0265ce1b46f2 -r c40017a470eb lib/libc/arch/sparc64/gen/flt_rounds.c
--- a/lib/libc/arch/sparc64/gen/flt_rounds.c    Sun Jun 24 13:56:10 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/flt_rounds.c    Sun Jun 24 15:26:02 2012 +0000
@@ -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 @@
 };
 
 int
-__flt_rounds()
+__flt_rounds(void)
 {
        uint32_t x;
 
diff -r 0265ce1b46f2 -r c40017a470eb lib/libc/arch/sparc64/gen/fpgetmask.c
--- a/lib/libc/arch/sparc64/gen/fpgetmask.c     Sun Jun 24 13:56:10 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/fpgetmask.c     Sun Jun 24 15:26:02 2012 +0000
@@ -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 @@
 #endif
 
 fp_except
-fpgetmask()
+fpgetmask(void)
 {
        uint32_t x;
 
diff -r 0265ce1b46f2 -r c40017a470eb lib/libc/arch/sparc64/gen/fpgetround.c
--- a/lib/libc/arch/sparc64/gen/fpgetround.c    Sun Jun 24 13:56:10 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/fpgetround.c    Sun Jun 24 15:26:02 2012 +0000
@@ -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 @@
 #endif
 
 fp_rnd
-fpgetround()
+fpgetround(void)
 {
        uint32_t x;
 
diff -r 0265ce1b46f2 -r c40017a470eb lib/libc/arch/sparc64/gen/fpgetsticky.c
--- a/lib/libc/arch/sparc64/gen/fpgetsticky.c   Sun Jun 24 13:56:10 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/fpgetsticky.c   Sun Jun 24 15:26:02 2012 +0000
@@ -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 @@
 #endif
 
 fp_except
-fpgetsticky()
+fpgetsticky(void)
 {
        uint32_t x;
        fp_except res;
diff -r 0265ce1b46f2 -r c40017a470eb lib/libc/compat-43/getdtablesize.c
--- a/lib/libc/compat-43/getdtablesize.c        Sun Jun 24 13:56:10 2012 +0000
+++ b/lib/libc/compat-43/getdtablesize.c        Sun Jun 24 15:26:02 2012 +0000
@@ -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@localhost>.
@@ -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));
 }
diff -r 0265ce1b46f2 -r c40017a470eb lib/libc/dlfcn/dlfcn_elf.c
--- a/lib/libc/dlfcn/dlfcn_elf.c        Sun Jun 24 13:56:10 2012 +0000
+++ b/lib/libc/dlfcn/dlfcn_elf.c        Sun Jun 24 15:26:02 2012 +0000
@@ -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 @@
 
 /*ARGSUSED*/
 __aconst char *
-dlerror()
+dlerror(void)
 {
 
        return dlfcn_error;
diff -r 0265ce1b46f2 -r c40017a470eb lib/libc/gdtoa/arithchk.c
--- a/lib/libc/gdtoa/arithchk.c Sun Jun 24 13:56:10 2012 +0000
+++ b/lib/libc/gdtoa/arithchk.c Sun Jun 24 15:26:02 2012 +0000
@@ -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 @@
 
 #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 @@
        return 0;
        }
 
- static Akind *
-icheck()
+static Akind *
+icheck(void)
 {
        union {
                double d;
@@ -98,8 +98,8 @@
 
 char *emptyfmt = "";   /* avoid possible warning message with printf("") */
 
- static Akind *
-ccheck()
+static Akind *
+ccheck(void)
 {
        union {
                double d;
@@ -119,8 +119,8 @@
        return 0;
        }
 
- static int
-fzcheck()
+static int
+fzcheck(void)
 {
        double a, b;
        int i;
@@ -138,8 +138,8 @@
        return b == 0.;
        }
 
- int
-main()
+int
+main(void)
 {
        Akind *a = 0;
        int Ldef = 0;
diff -r 0265ce1b46f2 -r c40017a470eb lib/libc/gen/Lint_flt_rounds.c
--- a/lib/libc/gen/Lint_flt_rounds.c    Sun Jun 24 13:56:10 2012 +0000
+++ b/lib/libc/gen/Lint_flt_rounds.c    Sun Jun 24 15:26:02 2012 +0000
@@ -1,4 +1,4 @@



Home | Main Index | Thread Index | Old Index