diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-03 20:32:27 -0600 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 11:47:11 -0600 |
commit | e13e191b6052a62701d8fb22c3660df23d3b6ec1 (patch) | |
tree | 0c9fc391cdb80c110a0052e890ae40dc1789920f | |
parent | 2310096fbc94133d23abd9f12d6b67e2584a51a9 (diff) | |
download | cygnal-e13e191b6052a62701d8fb22c3660df23d3b6ec1.tar.gz cygnal-e13e191b6052a62701d8fb22c3660df23d3b6ec1.tar.bz2 cygnal-e13e191b6052a62701d8fb22c3660df23d3b6ec1.zip |
ansification: remove _NOARGS
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
-rw-r--r-- | libgloss/libnosys/fork.c | 2 | ||||
-rw-r--r-- | libgloss/libnosys/getpid.c | 2 | ||||
-rw-r--r-- | libgloss/mcore/cmb-inbyte.c | 2 | ||||
-rw-r--r-- | newlib/libc/include/_ansi.h | 4 |
4 files changed, 4 insertions, 6 deletions
diff --git a/libgloss/libnosys/fork.c b/libgloss/libnosys/fork.c index f5795cb49..5fbf68b93 100644 --- a/libgloss/libnosys/fork.c +++ b/libgloss/libnosys/fork.c @@ -12,7 +12,7 @@ extern int errno; int _DEFUN (_fork, (), - _NOARGS) + void) { errno = ENOSYS; return -1; diff --git a/libgloss/libnosys/getpid.c b/libgloss/libnosys/getpid.c index 0ea19238e..9ed416c6b 100644 --- a/libgloss/libnosys/getpid.c +++ b/libgloss/libnosys/getpid.c @@ -12,7 +12,7 @@ extern int errno; int _DEFUN (_getpid, (), - _NOARGS) + void) { errno = ENOSYS; return -1; diff --git a/libgloss/mcore/cmb-inbyte.c b/libgloss/mcore/cmb-inbyte.c index 0b0b8f5d8..839ffe605 100644 --- a/libgloss/mcore/cmb-inbyte.c +++ b/libgloss/mcore/cmb-inbyte.c @@ -16,7 +16,7 @@ int _DEFUN (inbyte, (), - _NOARGS) + void) { return -1; diff --git a/newlib/libc/include/_ansi.h b/newlib/libc/include/_ansi.h index a09bfac08..41623f7a7 100644 --- a/newlib/libc/include/_ansi.h +++ b/newlib/libc/include/_ansi.h @@ -48,7 +48,6 @@ #ifdef _HAVE_STDC #define _PTR void * -#define _NOARGS void #define _VOLATILE volatile #define _SIGNED signed #define _VOID void @@ -64,7 +63,7 @@ #define _EXFNPTR(name, proto) (* name) proto #endif #define _DEFUN(name, arglist, args) name(args) -#define _DEFUN_VOID(name) name(_NOARGS) +#define _DEFUN_VOID(name) name(void) #define _CAST_VOID (void) #ifndef _LONG_DOUBLE #define _LONG_DOUBLE long double @@ -74,7 +73,6 @@ #endif #else #define _PTR char * -#define _NOARGS #define _VOLATILE #define _SIGNED #define _VOID void |