From 7664d9f306ca77e986b0f5d6bd79802d8e8f81ec Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] tload: Use standard names instead of numbers. --- tload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tload.c b/tload.c index 5fb00506..a45f8c9b 100644 --- a/tload.c +++ b/tload.c @@ -49,7 +49,7 @@ static char *screen; static int nrows = 25; static int ncols = 80; static int scr_size; -static int fd = 1; +static int fd = STDOUT_FILENO; static unsigned int dly = 5; static jmp_buf jb; @@ -150,7 +150,7 @@ int main(int argc, char **argv) } if (argc > optind) - if ((fd = open(argv[optind], 1)) == -1) + if ((fd = open(argv[optind], O_WRONLY)) == -1) xerr(EXIT_FAILURE, _("can not open tty")); setsize(0); -- 2.40.0