Merge branch 'each-style-tweak' into 'master'
adjust clang-format options to get closer to ISC style See merge request isc-projects/bind9!3061 (cherry picked from commitd3b49b6675)0255a974revise .clang-format and add a C formatting script in utile851ed0bapply the modified style
This commit is contained in:
@@ -29,8 +29,7 @@ static isc_threadresult_t
|
||||
#ifdef WIN32
|
||||
WINAPI
|
||||
#endif /* ifdef WIN32 */
|
||||
run1(void *arg)
|
||||
{
|
||||
run1(void *arg) {
|
||||
char *message = arg;
|
||||
|
||||
RUNTIME_CHECK(isc_rwlock_lock(&lock, isc_rwlocktype_read) ==
|
||||
@@ -61,8 +60,7 @@ static isc_threadresult_t
|
||||
#ifdef WIN32
|
||||
WINAPI
|
||||
#endif /* ifdef WIN32 */
|
||||
run2(void *arg)
|
||||
{
|
||||
run2(void *arg) {
|
||||
char *message = arg;
|
||||
|
||||
RUNTIME_CHECK(isc_rwlock_lock(&lock, isc_rwlocktype_write) ==
|
||||
@@ -90,13 +88,12 @@ static isc_threadresult_t
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
main(int argc, char *argv[]) {
|
||||
unsigned int nworkers;
|
||||
unsigned int i;
|
||||
isc_thread_t workers[100];
|
||||
char name[100];
|
||||
void * dupname;
|
||||
char name[100];
|
||||
void *dupname;
|
||||
|
||||
if (argc > 1) {
|
||||
nworkers = atoi(argv[1]);
|
||||
|
||||
Reference in New Issue
Block a user