aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerass El Hafidi <vitali64pmemail@protonmail.com>2023-04-11 18:47:54 +0200
committerFerass El Hafidi <vitali64pmemail@protonmail.com>2023-04-11 18:47:54 +0200
commit485b49310119ca1f41c2abad500f18024ad76af6 (patch)
tree26e6ef0bf6ad65b08a1aa36985bfa763a12ec96e
parent2f5a10312460515ddd055023595b510a79400c57 (diff)
downloadfases-485b49310119ca1f41c2abad500f18024ad76af6.tar.gz
fases-485b49310119ca1f41c2abad500f18024ad76af6.zip
core/tty: fix compiler error
Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
-rw-r--r--core/tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/tty.c b/core/tty.c
index 7234c05..3bc9d04 100644
--- a/core/tty.c
+++ b/core/tty.c
@@ -10,8 +10,9 @@
#define REQ_ERRPRINT /* Require errprint() from ../common/common.h */
#include "../common/common.h"
-int main(int, char *argv[]) {
+int main(int argc, char *argv[]) {
char *terminalname = ttyname(STDIN_FILENO);
+ if (argc != 1) {} /* workaround... */
if (errno == ENOTTY) {
/* POSIX says that if the stdin isn't a tty then the error shall be
* written to stdout, not stderr.