From 0d6b1e0188dcf74bf43d54a18ce5dc5fb8679339 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Thu, 31 May 2018 14:07:42 +0200 Subject: src/consoletype.c: deprecation warning added --- src/consoletype.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/consoletype.c b/src/consoletype.c index 929969a4..dc3bd119 100644 --- a/src/consoletype.c +++ b/src/consoletype.c @@ -30,7 +30,10 @@ int main(int argc, char **argv) char *type; int maj, min, ret = 0, fg = -1; struct stat sb; - + + fprintf(stderr, "warning: consoletype is now deprecated, and will be removed in the near future!\n" + "warning: use tty (1) instead! More info: 'man 1 tty'\n"); + fstat(0, &sb); maj = major(sb.st_rdev); min = minor(sb.st_rdev); -- cgit v1.2.1