Changeset 32260a0 in mainline
- Timestamp:
- 2012-07-20T16:38:15Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6de2d766
- Parents:
- 8d355aa8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/main.c
r8d355aa8 r32260a0 148 148 } 149 149 150 bool something_active = false; 150 151 /* 151 152 * Process command-line options. They determine what shall be … … 173 174 if (actions[idx].opt == opt) { 174 175 actions[idx].active = true; 176 something_active = true; 175 177 break; 176 178 } … … 183 185 184 186 /* Set the default action. */ 185 int idx = 0;186 bool something_active = false;187 while (actions[idx].opt != 0) {188 if (actions[idx].active) {189 something_active = true;190 break;191 }192 idx++;193 }194 187 if (!something_active) { 195 188 actions[0].active = true;
Note:
See TracChangeset
for help on using the changeset viewer.