| 650 | } |
| 651 | |
| 652 | static void inputdevice_set_newest_used_device(int portnum, struct jport *jps) |
| 653 | { |
| 654 | for (int i = 0; i < MAX_STORED_JPORTS; i++) { |
| 655 | struct stored_jport *jp = &stored_jports[portnum][i]; |
| 656 | if (jp->inuse && &jp->jp == jps && !jp->defaultports) { |
| 657 | stored_jport_cnt++; |
| 658 | jp->age = stored_jport_cnt; |
| 659 | } |
| 660 | } |
| 661 | } |
| 662 | |
| 663 | static void inputdevice_store_used_device(struct jport *jps, int portnum, bool defaultports) |
| 664 | { |
no outgoing calls
no test coverage detected