From 9087163804df8af6dc2ec1f675a2341c25f7795f Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 3 Dec 2017 21:43:30 -0600 Subject: ansification: remove _DEFUN Signed-off-by: Yaakov Selkowitz --- libgloss/crx/fstat.c | 3 +-- libgloss/crx/getpid.c | 3 +-- libgloss/crx/isatty.c | 3 +-- libgloss/crx/kill.c | 3 +-- libgloss/crx/putnum.c | 3 +-- libgloss/crx/stat.c | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) (limited to 'libgloss/crx') diff --git a/libgloss/crx/fstat.c b/libgloss/crx/fstat.c index 75f863583..e96cc07d1 100644 --- a/libgloss/crx/fstat.c +++ b/libgloss/crx/fstat.c @@ -19,8 +19,7 @@ * fstat -- Since we have no file system, we just return an error. */ int -_DEFUN (fstat, (fd, buf), - int fd, +fstat (int fd, struct stat *buf) { buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ diff --git a/libgloss/crx/getpid.c b/libgloss/crx/getpid.c index 3c1a7b8b8..912ca18a5 100644 --- a/libgloss/crx/getpid.c +++ b/libgloss/crx/getpid.c @@ -19,8 +19,7 @@ * getpid -- only one process, so just return 1. */ int -_DEFUN (getpid, (), - ) +getpid (void) { return __MYPID; } diff --git a/libgloss/crx/isatty.c b/libgloss/crx/isatty.c index ac3d041e7..c0039a59e 100644 --- a/libgloss/crx/isatty.c +++ b/libgloss/crx/isatty.c @@ -20,8 +20,7 @@ * serial port, we'll say yes and return a 1. */ int -_DEFUN (isatty, (fd), - int fd) +isatty (int fd) { return (1); } diff --git a/libgloss/crx/kill.c b/libgloss/crx/kill.c index db5018cfc..98cd3c40e 100644 --- a/libgloss/crx/kill.c +++ b/libgloss/crx/kill.c @@ -19,8 +19,7 @@ * kill -- go out via exit... */ int -_DEFUN (kill, (pid, sig), - int pid, +kill (int pid, int sig) { if(pid == __MYPID) diff --git a/libgloss/crx/putnum.c b/libgloss/crx/putnum.c index 3317bbf0a..af7232205 100644 --- a/libgloss/crx/putnum.c +++ b/libgloss/crx/putnum.c @@ -18,8 +18,7 @@ * putnum -- print a 32 bit number in hex */ void -_DEFUN (putnum, (num), - unsigned int num) +putnum (unsigned int num) { char buf[9]; int cnt; diff --git a/libgloss/crx/stat.c b/libgloss/crx/stat.c index 9562b9097..497ef83c0 100644 --- a/libgloss/crx/stat.c +++ b/libgloss/crx/stat.c @@ -20,8 +20,7 @@ * stat -- Since we have no file system, we just return an error. */ int -_DEFUN (stat, (path, buf), - const char *path, +stat (const char *path, struct stat *buf) { errno = EIO; -- cgit v1.2.3