From 4009566af9a47aa4a41dac689ff89f017d6dc8db Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Thu, 15 Feb 2007 15:22:20 -0500 Subject: fix compiler warning --- src/getfd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/getfd.c b/src/getfd.c index 9dbe15c..6053cfe 100644 --- a/src/getfd.c +++ b/src/getfd.c @@ -13,7 +13,8 @@ */ static int -is_a_console(int fd) { +is_a_console (int fd) +{ char arg; arg = 0; @@ -22,7 +23,8 @@ is_a_console(int fd) { } static int -open_a_console(char *fnam) { +open_a_console (char *fnam) +{ int fd; fd = open(fnam, O_RDONLY); @@ -33,7 +35,8 @@ open_a_console(char *fnam) { return fd; } -int getfd() { +int getfd (void) +{ int fd; fd = open_a_console("/dev/tty"); -- cgit