aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2017-05-23 17:01:38 +0200
committerDee'Kej <deekej@linuxmail.org>2017-05-24 10:44:41 +0200
commit51bad09acb05e0c8606af14fd5aa1374ce28d432 (patch)
treed404a6f4de69f52f6cc0153f232e9506b92ee07d /src
parent7414ff601a342b2872ae88552c5fb91f1de3fc89 (diff)
downloadinitscripts-51bad09acb05e0c8606af14fd5aa1374ce28d432.tar
initscripts-51bad09acb05e0c8606af14fd5aa1374ce28d432.tar.gz
initscripts-51bad09acb05e0c8606af14fd5aa1374ce28d432.tar.bz2
initscripts-51bad09acb05e0c8606af14fd5aa1374ce28d432.tar.xz
initscripts-51bad09acb05e0c8606af14fd5aa1374ce28d432.zip
usleep: print deprecation warning from now on
Diffstat (limited to 'src')
-rw-r--r--src/usleep.c3
1 files changed, 3 insertions, 0 deletions
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]");