Merge branch '46-add-curly-braces' into 'master'
Add curly braces using uncrustify and then reformat with clang-format back Closes #46 See merge request isc-projects/bind9!3057 (cherry picked from commit67b68e06ad)36c6105eUse coccinelle to add braces to nested single line statementd14bb713Add copy of run-clang-tidy that can fixup the filepaths056e133cUse clang-tidy to add curly braces around one-line statements
This commit is contained in:
@@ -46,42 +46,42 @@ testpair_t testpair[] = { { EPERM, ISC_R_NOPERM },
|
||||
{ ELOOP, ISC_R_INVALIDFILE },
|
||||
#ifdef EOVERFLOW
|
||||
{ EOVERFLOW, ISC_R_RANGE },
|
||||
#endif
|
||||
#endif /* ifdef EOVERFLOW */
|
||||
#ifdef EAFNOSUPPORT
|
||||
{ EAFNOSUPPORT, ISC_R_FAMILYNOSUPPORT },
|
||||
#endif
|
||||
#endif /* ifdef EAFNOSUPPORT */
|
||||
#ifdef EADDRINUSE
|
||||
{ EADDRINUSE, ISC_R_ADDRINUSE },
|
||||
#endif
|
||||
#endif /* ifdef EADDRINUSE */
|
||||
{ EADDRNOTAVAIL, ISC_R_ADDRNOTAVAIL },
|
||||
#ifdef ENETDOWN
|
||||
{ ENETDOWN, ISC_R_NETDOWN },
|
||||
#endif
|
||||
#endif /* ifdef ENETDOWN */
|
||||
#ifdef ENETUNREACH
|
||||
{ ENETUNREACH, ISC_R_NETUNREACH },
|
||||
#endif
|
||||
#endif /* ifdef ENETUNREACH */
|
||||
#ifdef ECONNABORTED
|
||||
{ ECONNABORTED, ISC_R_CONNECTIONRESET },
|
||||
#endif
|
||||
#endif /* ifdef ECONNABORTED */
|
||||
#ifdef ECONNRESET
|
||||
{ ECONNRESET, ISC_R_CONNECTIONRESET },
|
||||
#endif
|
||||
#endif /* ifdef ECONNRESET */
|
||||
#ifdef ENOBUFS
|
||||
{ ENOBUFS, ISC_R_NORESOURCES },
|
||||
#endif
|
||||
#endif /* ifdef ENOBUFS */
|
||||
#ifdef ENOTCONN
|
||||
{ ENOTCONN, ISC_R_NOTCONNECTED },
|
||||
#endif
|
||||
#endif /* ifdef ENOTCONN */
|
||||
#ifdef ETIMEDOUT
|
||||
{ ETIMEDOUT, ISC_R_TIMEDOUT },
|
||||
#endif
|
||||
#endif /* ifdef ETIMEDOUT */
|
||||
{ ECONNREFUSED, ISC_R_CONNREFUSED },
|
||||
#ifdef EHOSTDOWN
|
||||
{ EHOSTDOWN, ISC_R_HOSTDOWN },
|
||||
#endif
|
||||
#endif /* ifdef EHOSTDOWN */
|
||||
#ifdef EHOSTUNREACH
|
||||
{ EHOSTUNREACH, ISC_R_HOSTUNREACH },
|
||||
#endif
|
||||
#endif /* ifdef EHOSTUNREACH */
|
||||
{ 0, ISC_R_UNEXPECTED } };
|
||||
|
||||
/* convert errno to ISC result */
|
||||
@@ -121,4 +121,4 @@ main(void)
|
||||
return (0);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif /* if HAVE_CMOCKA */
|
||||
|
||||
Reference in New Issue
Block a user