diff options
author | Sumit Bose <sbose@redhat.com> | 2012-12-19 10:19:01 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-19 18:42:58 +0100 |
commit | 767a679fd5ac2f409476180c0dbcd8ecbe991503 (patch) | |
tree | 89132bbd9e059fdb4a28ac9a1a73b0b7f1a8056c /src/providers | |
parent | 80941dd89fd8bc7c4a1272c304f737ce0fd5fc54 (diff) | |
download | sssd-767a679fd5ac2f409476180c0dbcd8ecbe991503.tar.gz sssd-767a679fd5ac2f409476180c0dbcd8ecbe991503.tar.bz2 sssd-767a679fd5ac2f409476180c0dbcd8ecbe991503.zip |
Add default section to switch statement
switch statements should always have a default section. In this
particular case gcc gave a "'send_fn' may be used uninitialized in this
function" warning.
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/ldap/sdap_sudo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c index 53aa6d4a..047ba587 100644 --- a/src/providers/ldap/sdap_sudo.c +++ b/src/providers/ldap/sdap_sudo.c @@ -1229,6 +1229,9 @@ static int sdap_sudo_schedule_refresh(TALLOC_CTX *mem_ctx, case SDAP_SUDO_REFRESH_RULES: DEBUG(SSSDBG_OP_FAILURE, ("Rules refresh can't be scheduled!\n")); return EINVAL; + default: + DEBUG(SSSDBG_CRIT_FAILURE, ("Unknown refresh type [%d].\n", refresh)); + return EINVAL; } |