fix(aoss): match sleep declaration to void definition #1085

Merged
coah80 merged 1 commits from agent/bittle/aoss-sleep-final into main 2026-10-03 09:04:12 +00:00
coah80 commented 2026-10-03 09:03:43 +00:00 (Migrated from github.com)

Source-contract correction

AOSS.c declared AOSSi_Sleep(u32) as returning int, while its existing definition in AOSSLink.c returns void. Change only that local declaration to void. No body, shared-header, callback, argument, countdown or linking change. This fixes incompatible cross-translation-unit function types; no matching percentage gain is claimed.

Independent parent verification on 9e8ca608

  • AOSSi_Sleep and AOSSi_SleepMs source definitions both return void
  • Raw original DOL, SHA1 verified, shows Sleep as a single tail branch at 0x813FD998 to SleepMs at 0x813FD18C
  • Full recorded-text scan finds exactly six Sleep callers, all in AOSS_Init_old
  • Parent reran the raw-DOL control-flow audit: every caller overwrites r3 before any read, subsequent call or return in the reachable local region; source calls are expression statements
  • Freshly rebuilt AOSS object is whole-file byte-identical to baseline
  • Full default build: all 1027 source objects are byte-identical to current main, and the entire generated report is unchanged
  • AOSS remains 16/21 exact, 6436/16192 matched code, 3928/3928 data, 97.71665% fuzzy
  • Pool 1/1 identical; literal audit 19 functions / 12 arguments, no candidates/errors; existing Init/Hello unequal-size skips remain
  • Full default progress and 43U/ok, worktree and diff gates pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d

No live network or Wii runtime test was needed or claimed. Behavioral neutrality is supported by unchanged emitted objects and verified caller/definition contract. Uploaded tree 2f220a31bf equals independently tested tree. Evidence included without original binary material. No merge or auto-merge requested.

Note

Fix AOSSi_Sleep return type to match void definition

Changes the external declaration of AOSSi_Sleep in AOSS.c from int to void so it matches the function definition; the name and u32 duration parameter stay the same. Adds a doc recording the mismatch evidence and verification results in aoss-sleep-return-contract-20261003.md.

Macroscope summarized 993bcb7.

## Source-contract correction AOSS.c declared AOSSi_Sleep(u32) as returning int, while its existing definition in AOSSLink.c returns void. Change only that local declaration to void. No body, shared-header, callback, argument, countdown or linking change. This fixes incompatible cross-translation-unit function types; no matching percentage gain is claimed. ## Independent parent verification on 9e8ca608 - AOSSi_Sleep and AOSSi_SleepMs source definitions both return void - Raw original DOL, SHA1 verified, shows Sleep as a single tail branch at 0x813FD998 to SleepMs at 0x813FD18C - Full recorded-text scan finds exactly six Sleep callers, all in AOSS_Init_old - Parent reran the raw-DOL control-flow audit: every caller overwrites r3 before any read, subsequent call or return in the reachable local region; source calls are expression statements - Freshly rebuilt AOSS object is whole-file byte-identical to baseline - Full default build: all 1027 source objects are byte-identical to current main, and the entire generated report is unchanged - AOSS remains 16/21 exact, 6436/16192 matched code, 3928/3928 data, 97.71665% fuzzy - Pool 1/1 identical; literal audit 19 functions / 12 arguments, no candidates/errors; existing Init/Hello unequal-size skips remain - Full default progress and 43U/ok, worktree and diff gates pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d No live network or Wii runtime test was needed or claimed. Behavioral neutrality is supported by unchanged emitted objects and verified caller/definition contract. Uploaded tree 2f220a31bf4adda6bf879ddb28b52712a9d8c1ad equals independently tested tree. Evidence included without original binary material. No merge or auto-merge requested. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Fix `AOSSi_Sleep` return type to match void definition > Changes the external declaration of `AOSSi_Sleep` in [AOSS.c](https://github.com/coah80/wii-ipl/pull/1085/files#diff-c9d178769a3c839c7dccd0eba548dd59c264dfe097f6aa29f6df6f8bb7546c98) from `int` to `void` so it matches the function definition; the name and `u32` duration parameter stay the same. Adds a doc recording the mismatch evidence and verification results in [aoss-sleep-return-contract-20261003.md](https://github.com/coah80/wii-ipl/pull/1085/files#diff-05d80322071701dee50b2236ff10bddd3b4dfcecf5ba28b82b4945ac0178b21e). > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 993bcb7.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 09:04:10 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.