summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-12-19 10:19:01 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-19 18:42:58 +0100
commit767a679fd5ac2f409476180c0dbcd8ecbe991503 (patch)
tree89132bbd9e059fdb4a28ac9a1a73b0b7f1a8056c /src/providers
parent80941dd89fd8bc7c4a1272c304f737ce0fd5fc54 (diff)
downloadsssd-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.c3
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;
}