Apply clang format for samples files (#833)

Apply clang format for c source files under samples folder
This commit is contained in:
Wenyong Huang
2021-11-15 12:48:35 +08:00
committed by GitHub
parent 37a14c9825
commit 3ded9ece83
58 changed files with 1261 additions and 957 deletions

View File

@ -9,7 +9,8 @@
static pthread_mutex_t mutex;
static pthread_cond_t cond;
static void *thread(void *arg)
static void *
thread(void *arg)
{
int *num = (int *)arg;
@ -29,7 +30,8 @@ static void *thread(void *arg)
return NULL;
}
int main(int argc, char *argv[])
int
main(int argc, char *argv[])
{
pthread_t tid;
int num = 0, ret = -1;