mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
Merge branch 'marka-add-fallthrough' into 'main'
Add fallthrough and braces See merge request isc-projects/bind9!3884
This commit is contained in:
@@ -4245,9 +4245,10 @@ isc_socket_cleanunix(const isc_sockaddr_t *sockaddr, bool active) {
|
|||||||
if (stat(sockaddr->type.sunix.sun_path, &sb) < 0) {
|
if (stat(sockaddr->type.sunix.sun_path, &sb) < 0) {
|
||||||
switch (errno) {
|
switch (errno) {
|
||||||
case ENOENT:
|
case ENOENT:
|
||||||
if (active) /* We exited cleanly last time */
|
if (active) { /* We exited cleanly last time */
|
||||||
break;
|
break;
|
||||||
/* intentional falltrough */
|
}
|
||||||
|
/* FALLTHROUGH */
|
||||||
default:
|
default:
|
||||||
strerror_r(errno, strbuf, sizeof(strbuf));
|
strerror_r(errno, strbuf, sizeof(strbuf));
|
||||||
isc_log_write(isc_lctx, ISC_LOGCATEGORY_GENERAL,
|
isc_log_write(isc_lctx, ISC_LOGCATEGORY_GENERAL,
|
||||||
|
Reference in New Issue
Block a user