Skip to content

Commit 10579a9

Browse files
andy5995icculus
andauthored
Use NET_Status instead of int.
Co-authored-by: Ryan C. Gordon <icculus@icculus.org>
1 parent 26f8dd2 commit 10579a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SDL_net.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ static int SDLCALL ResolverThread(void *data)
282282
SDL_Delay(RandomNumberBetween(250, 2000 + (50 * simulated_loss)));
283283
}
284284

285-
int outcome;
285+
NET_Status outcome;
286286
if (ShouldSimulateLoss(simulated_loss)) {
287-
outcome = -1;
287+
outcome = NET_FAILURE;
288288
addr->errstr = SDL_strdup("simulated failure");
289289
} else {
290290
outcome = ResolveAddress(addr);

0 commit comments

Comments
 (0)