aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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]");