aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-05-31 13:49:21 +0200
committerDee'Kej <deekej@linuxmail.org>2018-06-01 14:51:29 +0200
commit8e30047757e8a8947eee3edc0feebcac7289334b (patch)
treec23b0b8a11e0e02e960a53f814ddaf43a3286e0d
parentecc23fe5b61bc5d501cd2fcffffcf5ab87269317 (diff)
downloadinitscripts-8e30047757e8a8947eee3edc0feebcac7289334b.tar
initscripts-8e30047757e8a8947eee3edc0feebcac7289334b.tar.gz
initscripts-8e30047757e8a8947eee3edc0feebcac7289334b.tar.bz2
initscripts-8e30047757e8a8947eee3edc0feebcac7289334b.tar.xz
initscripts-8e30047757e8a8947eee3edc0feebcac7289334b.zip
src/genhostid.c: deprecation warning added
-rw-r--r--src/genhostid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/genhostid.c b/src/genhostid.c
index f6253bec..79dcb92e 100644
--- a/src/genhostid.c
+++ b/src/genhostid.c
@@ -20,12 +20,16 @@
#include <time.h>
#include <unistd.h>
#include <sys/stat.h>
+#include <stdio.h>
int main (void)
{
struct stat st;
long int n;
+ fprintf(stderr, "warning: genhostid is now deprecated, and will be removed in the near future!\n"
+ "warning: use systemd-machine-id-setup (1) instead! More info: 'man 5 machine-id'\n");
+
/*
* NOTE: gethostid() always returns 32-bit identifier, and st_size field
* of stat structure represents total size of file, in bytes.