From 8e30047757e8a8947eee3edc0feebcac7289334b Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Thu, 31 May 2018 13:49:21 +0200 Subject: src/genhostid.c: deprecation warning added --- src/genhostid.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #include #include +#include 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. -- cgit v1.2.1