diff options
-rw-r--r-- | src/usleep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usleep.c b/src/usleep.c index d5dfe21b..e5e3077d 100644 --- a/src/usleep.c +++ b/src/usleep.c @@ -44,9 +44,6 @@ 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]"); @@ -80,6 +77,9 @@ int main(int argc, char **argv) { else count = strtoul(countStr, NULL, 0); + fprintf(stderr, "warning: usleep is deprecated, and will be removed in near future!\n" + "warning: use \"sleep %.7g\" instead...\n", count / 1e6); + usleep(count); return 0; } |