1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

libds: remove unreachable break statements after return

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
This commit is contained in:
Rob van der Linde 2024-02-08 20:30:31 +13:00 committed by Andrew Bartlett
parent 7a674ee9ff
commit 2a95f83c5c

View File

@ -173,92 +173,64 @@ const char *dsdb_user_account_control_flag_bit_to_string(uint32_t uf)
switch (uf) { switch (uf) {
case UF_SCRIPT: case UF_SCRIPT:
return "UF_SCRIPT"; return "UF_SCRIPT";
break;
case UF_ACCOUNTDISABLE: case UF_ACCOUNTDISABLE:
return "UF_ACCOUNTDISABLE"; return "UF_ACCOUNTDISABLE";
break;
case UF_00000004: case UF_00000004:
return "UF_00000004"; return "UF_00000004";
break;
case UF_HOMEDIR_REQUIRED: case UF_HOMEDIR_REQUIRED:
return "UF_HOMEDIR_REQUIRED"; return "UF_HOMEDIR_REQUIRED";
break;
case UF_LOCKOUT: case UF_LOCKOUT:
return "UF_LOCKOUT"; return "UF_LOCKOUT";
break;
case UF_PASSWD_NOTREQD: case UF_PASSWD_NOTREQD:
return "UF_PASSWD_NOTREQD"; return "UF_PASSWD_NOTREQD";
break;
case UF_PASSWD_CANT_CHANGE: case UF_PASSWD_CANT_CHANGE:
return "UF_PASSWD_CANT_CHANGE"; return "UF_PASSWD_CANT_CHANGE";
break;
case UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED: case UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED:
return "UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED"; return "UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED";
break;
case UF_TEMP_DUPLICATE_ACCOUNT: case UF_TEMP_DUPLICATE_ACCOUNT:
return "UF_TEMP_DUPLICATE_ACCOUNT"; return "UF_TEMP_DUPLICATE_ACCOUNT";
break;
case UF_NORMAL_ACCOUNT: case UF_NORMAL_ACCOUNT:
return "UF_NORMAL_ACCOUNT"; return "UF_NORMAL_ACCOUNT";
break;
case UF_00000400: case UF_00000400:
return "UF_00000400"; return "UF_00000400";
break;
case UF_INTERDOMAIN_TRUST_ACCOUNT: case UF_INTERDOMAIN_TRUST_ACCOUNT:
return "UF_INTERDOMAIN_TRUST_ACCOUNT"; return "UF_INTERDOMAIN_TRUST_ACCOUNT";
break;
case UF_WORKSTATION_TRUST_ACCOUNT: case UF_WORKSTATION_TRUST_ACCOUNT:
return "UF_WORKSTATION_TRUST_ACCOUNT"; return "UF_WORKSTATION_TRUST_ACCOUNT";
break;
case UF_SERVER_TRUST_ACCOUNT: case UF_SERVER_TRUST_ACCOUNT:
return "UF_SERVER_TRUST_ACCOUNT"; return "UF_SERVER_TRUST_ACCOUNT";
break;
case UF_00004000: case UF_00004000:
return "UF_00004000"; return "UF_00004000";
break;
case UF_00008000: case UF_00008000:
return "UF_00008000"; return "UF_00008000";
break;
case UF_DONT_EXPIRE_PASSWD: case UF_DONT_EXPIRE_PASSWD:
return "UF_DONT_EXPIRE_PASSWD"; return "UF_DONT_EXPIRE_PASSWD";
break;
case UF_MNS_LOGON_ACCOUNT: case UF_MNS_LOGON_ACCOUNT:
return "UF_MNS_LOGON_ACCOUNT"; return "UF_MNS_LOGON_ACCOUNT";
break;
case UF_SMARTCARD_REQUIRED: case UF_SMARTCARD_REQUIRED:
return "UF_SMARTCARD_REQUIRED"; return "UF_SMARTCARD_REQUIRED";
break;
case UF_TRUSTED_FOR_DELEGATION: case UF_TRUSTED_FOR_DELEGATION:
return "UF_TRUSTED_FOR_DELEGATION"; return "UF_TRUSTED_FOR_DELEGATION";
break;
case UF_NOT_DELEGATED: case UF_NOT_DELEGATED:
return "UF_NOT_DELEGATED"; return "UF_NOT_DELEGATED";
break;
case UF_USE_DES_KEY_ONLY: case UF_USE_DES_KEY_ONLY:
return "UF_USE_DES_KEY_ONLY"; return "UF_USE_DES_KEY_ONLY";
break;
case UF_DONT_REQUIRE_PREAUTH: case UF_DONT_REQUIRE_PREAUTH:
return "UF_DONT_REQUIRE_PREAUTH"; return "UF_DONT_REQUIRE_PREAUTH";
break;
case UF_PASSWORD_EXPIRED: case UF_PASSWORD_EXPIRED:
return "UF_PASSWORD_EXPIRED"; return "UF_PASSWORD_EXPIRED";
break;
case UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION: case UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION:
return "UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION"; return "UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION";
break;
case UF_NO_AUTH_DATA_REQUIRED: case UF_NO_AUTH_DATA_REQUIRED:
return "UF_NO_AUTH_DATA_REQUIRED"; return "UF_NO_AUTH_DATA_REQUIRED";
break;
case UF_PARTIAL_SECRETS_ACCOUNT: case UF_PARTIAL_SECRETS_ACCOUNT:
return "UF_PARTIAL_SECRETS_ACCOUNT"; return "UF_PARTIAL_SECRETS_ACCOUNT";
break;
case UF_USE_AES_KEYS: case UF_USE_AES_KEYS:
return "UF_USE_AES_KEYS"; return "UF_USE_AES_KEYS";
break;
default: default:
break; break;
} }