aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-05-31 14:07:42 +0200
committerDee'Kej <deekej@linuxmail.org>2018-06-01 14:51:29 +0200
commit0d6b1e0188dcf74bf43d54a18ce5dc5fb8679339 (patch)
treea9a0139af363b05d655b746d158ba57cdefafc8a /src
parent8e30047757e8a8947eee3edc0feebcac7289334b (diff)
downloadinitscripts-0d6b1e0188dcf74bf43d54a18ce5dc5fb8679339.tar
initscripts-0d6b1e0188dcf74bf43d54a18ce5dc5fb8679339.tar.gz
initscripts-0d6b1e0188dcf74bf43d54a18ce5dc5fb8679339.tar.bz2
initscripts-0d6b1e0188dcf74bf43d54a18ce5dc5fb8679339.tar.xz
initscripts-0d6b1e0188dcf74bf43d54a18ce5dc5fb8679339.zip
src/consoletype.c: deprecation warning added
Diffstat (limited to 'src')
-rw-r--r--src/consoletype.c5
1 files changed, 4 insertions, 1 deletions
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);