]> git.sur5r.net Git - openocd/commit
Simplify handle_sleep_command:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 12 Jun 2009 01:39:51 +0000 (01:39 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 12 Jun 2009 01:39:51 +0000 (01:39 +0000)
commit5af1bdcff468ae8fdb04f1d4d666d20b5fd0b73d
tree1bf51b17e19097b4a6ea6a31e4e88e08cae70ddc
parent5c123481a12b229df1f20515515024aa26457726
Simplify handle_sleep_command:
- Use new parse_ulong to ensure duration parses as a valid number.
- Rework logic to improve readability and seliminate uperfluous braces.
- Change whitespace to improve style.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2207 b42882b7-edfa-0310-969c-e2dbd0fdcd60
src/helper/command.c