Code style: changed "sizeof foo" to "sizeof(foo)" (thanks @sezero!)
(cherry picked from commit c6443d86c9)
This commit is contained in:
1 parent
46d143376a
commit
0d76380042
71 files changed
+525
-234
No files matched your search
@@ -52,7 +52,7 @@ ThreadFunc(void *data)
|
||||
|
||||
for (i = 0; i < NUMTHREADS; i++) {
|
||||
char name[64];
|
||||
(void)SDL_snprintf(name, sizeof name, "Child%d_%d", tid, i);
|
||||
(void)SDL_snprintf(name, sizeof(name), "Child%d_%d", tid, i);
|
||||
flags[i] = 0;
|
||||
sub_threads[i] = SDL_CreateThread(SubThreadFunc, name, &flags[i]);
|
||||
}
|
||||
@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
|
||||
(void)signal(SIGSEGV, SIG_DFL);
|
||||
for (i = 0; i < NUMTHREADS; i++) {
|
||||
char name[64];
|
||||
(void)SDL_snprintf(name, sizeof name, "Parent%d", i);
|
||||
(void)SDL_snprintf(name, sizeof(name), "Parent%d", i);
|
||||
SDL_AtomicSet(&time_for_threads_to_die[i], 0);
|
||||
threads[i] = SDL_CreateThread(ThreadFunc, name, (void *)(uintptr_t)i);
|
||||
|
||||
|
||||
Reference in new issue
Block a user