From 51bad09acb05e0c8606af14fd5aa1374ce28d432 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Tue, 23 May 2017 17:01:38 +0200 Subject: usleep: print deprecation warning from now on --- src/usleep.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/usleep.c b/src/usleep.c index a5e7d9d7..d5dfe21b 100644 --- a/src/usleep.c +++ b/src/usleep.c @@ -44,6 +44,9 @@ int main(int argc, char **argv) { { 0, 0, 0, 0, 0 } }; + fprintf(stderr, "%s: warning: usleep(1) is deprecated, and will be removed in near future!!\n" + "%s: warning: use sleep(1) instead...\n", argv[0], argv[0]); + optCon = poptGetContext("usleep", argc, argv, options,0); /*poptReadDefaultConfig(optCon, 1);*/ poptSetOtherOptionHelp(optCon, "[microseconds]"); -- cgit v1.2.1