Compare commits

...

1 Commits

Author SHA1 Message Date
coah
4cf20f4dbe match(d_nhttp_private): NHTTPDeleteConnection
Rewrite ConnectionStarted's null check as if/else so the inlined
WaitConnection path matches beq/bne block order (null → -1 first).

Before: 6/7 funcs, 908/1320 code bytes
After:  7/7 funcs, 1320/1320 code bytes
DOL sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
2026-10-01 17:53:54 -05:00

View File

@@ -55,7 +55,13 @@ static s32 ConnectionStarted(NHTTPConnectionInfo* handle) {
void* system=NHTTPi_GetSystemInfoP(); void* system=NHTTPi_GetSystemInfoP();
void* mutex=NHTTPi_GetMutexInfoP(system); void* mutex=NHTTPi_GetMutexInfoP(system);
NHTTPConnectionInfo* connection=NHTTPi_GetConnection(mutex,handle); NHTTPConnectionInfo* connection=NHTTPi_GetConnection(mutex,handle);
return connection ? connection->started : -1; s32 started;
if (connection == NULL) {
started = -1;
} else {
started = connection->started;
}
return started;
} }
static s32 ConnectionState(NHTTPConnectionInfo* handle) { static s32 ConnectionState(NHTTPConnectionInfo* handle) {