Skip to content

Commit e30858a

Browse files
committed
Declare internal task exec shim static
1 parent b726584 commit e30858a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

task.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ able_task_exec(able_task_t *task) {
88
return y;
99
}
1010

11-
void *
12-
able_task_exec_shim(void *task) {
11+
static void *
12+
task_exec_shim(void *task) {
1313
able_task_exec(task);
1414
return NULL;
1515
}
@@ -19,7 +19,7 @@ able_task_fork_exec(able_task_t *task) {
1919
pthread_attr_t thread_attr;
2020
pthread_attr_init(&thread_attr);
2121
pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_DETACHED);
22-
pthread_create(&task->c, &thread_attr, able_task_exec_shim, task);
22+
pthread_create(&task->c, &thread_attr, task_exec_shim, task);
2323
pthread_attr_destroy(&thread_attr);
2424
return 0;
2525
}

0 commit comments

Comments
 (0)