diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-02-15 15:22:20 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2007-02-15 15:22:20 -0500 |
commit | 4009566af9a47aa4a41dac689ff89f017d6dc8db (patch) | |
tree | b40ce942a1dfc0fe37315fc62655daaf72ffe6e5 /src | |
parent | 6c532b986e2a05bf666a8409cf130651e8461874 (diff) |
fix compiler warning
Diffstat (limited to 'src')
-rw-r--r-- | src/getfd.c | 9 |
1 files 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"); |