Changeset 081d60f in mainline for uspace/app/bdsh/cmds/modules/sleep/sleep.c
- Timestamp:
- 2012-04-04T03:55:26Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1dbe465
- Parents:
- e4fbccd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/sleep/sleep.c
re4fbccd r081d60f 48 48 help_cmd_sleep(HELP_SHORT); 49 49 printf( 50 "Usage: %s <duration>\n"51 "The duration is a decimal number of seconds.\n",52 cmdname);50 "Usage: %s <duration>\n" 51 "The duration is a decimal number of seconds.\n", 52 cmdname); 53 53 } 54 54 … … 62 62 * @return EOK if conversion was successful. 63 63 */ 64 static int str_useconds_t(const char *nptr, useconds_t *result)64 static int decimal_to_useconds(const char *nptr, useconds_t *result) 65 65 { 66 66 int ret; … … 125 125 } 126 126 127 ret = str_useconds_t(argv[1], &duration);127 ret = decimal_to_useconds(argv[1], &duration); 128 128 if (ret != EOK) { 129 129 printf("%s - invalid duration.\n", cmdname);
Note:
See TracChangeset
for help on using the changeset viewer.