summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-02-12 14:15:27 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-02-18 13:48:44 -0500
commit2c5bf74c71443f1680fef4fc0daa4a4c9dd10ad8 (patch)
treea4ef215d1fc40fadbed9bb5497fa32a96d151d39 /server
parenta40a817535c28712e27fe2c0f87817af43a249a2 (diff)
downloadsssd-2c5bf74c71443f1680fef4fc0daa4a4c9dd10ad8.tar.gz
sssd-2c5bf74c71443f1680fef4fc0daa4a4c9dd10ad8.tar.xz
sssd-2c5bf74c71443f1680fef4fc0daa4a4c9dd10ad8.zip
Supress warnings with -O2
Diffstat (limited to 'server')
-rw-r--r--server/db/sysdb.c8
-rw-r--r--server/ldb_modules/memberof.c2
-rw-r--r--server/providers/krb5/krb5_auth.c7
-rw-r--r--server/responder/pam/pamsrv_cmd.c3
-rw-r--r--server/util/find_uid.c2
5 files changed, 10 insertions, 12 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c
index 88d601189..b3f81a083 100644
--- a/server/db/sysdb.c
+++ b/server/db/sysdb.c
@@ -1188,7 +1188,7 @@ static int sysdb_check_upgrade_02(TALLOC_CTX *mem_ctx,
if (ret != LDB_SUCCESS) {
DEBUG(0, ("WARNING: Could not remove entry %s,"
" from old ldb file! (%d [%s])\n",
- ldb_dn_get_linearized(msg->dn),
+ ldb_dn_get_linearized(orig_dn),
ret, ldb_errstring(ldb)));
}
}
@@ -1200,21 +1200,21 @@ static int sysdb_check_upgrade_02(TALLOC_CTX *mem_ctx,
if (ret != LDB_SUCCESS) {
DEBUG(9, ("WARNING: Could not remove entry %s,"
" from old ldb file! (%d [%s])\n",
- ldb_dn_get_linearized(msg->dn),
+ ldb_dn_get_linearized(groups_dn),
ret, ldb_errstring(ldb)));
}
ret = ldb_delete(ldb, users_dn);
if (ret != LDB_SUCCESS) {
DEBUG(9, ("WARNING: Could not remove entry %s,"
" from old ldb file! (%d [%s])\n",
- ldb_dn_get_linearized(msg->dn),
+ ldb_dn_get_linearized(users_dn),
ret, ldb_errstring(ldb)));
}
ret = ldb_delete(ldb, domain_dn);
if (ret != LDB_SUCCESS) {
DEBUG(9, ("WARNING: Could not remove entry %s,"
" from old ldb file! (%d [%s])\n",
- ldb_dn_get_linearized(msg->dn),
+ ldb_dn_get_linearized(domain_dn),
ret, ldb_errstring(ldb)));
}
diff --git a/server/ldb_modules/memberof.c b/server/ldb_modules/memberof.c
index b8ab1bc98..e0a241a5e 100644
--- a/server/ldb_modules/memberof.c
+++ b/server/ldb_modules/memberof.c
@@ -1922,7 +1922,7 @@ static int mbof_del_mod_entry(struct mbof_del_operation *delop)
struct ldb_request *mod_req;
struct ldb_message *msg;
struct ldb_message_element *el;
- struct ldb_dn **diff;
+ struct ldb_dn **diff = NULL;
const char *name;
const char *val;
int i, j, k;
diff --git a/server/providers/krb5/krb5_auth.c b/server/providers/krb5/krb5_auth.c
index fd0a06392..50f033eb0 100644
--- a/server/providers/krb5/krb5_auth.c
+++ b/server/providers/krb5/krb5_auth.c
@@ -779,7 +779,7 @@ static void get_user_attr_done(void *pvt, int err, struct ldb_result *res)
struct tevent_req *req;
krb5_error_code kerr;
int ret;
- struct pam_data *pd;
+ struct pam_data *pd = talloc_get_type(be_req->req_data, struct pam_data);
int pam_status=PAM_SYSTEM_ERR;
int dp_err = DP_ERR_FATAL;
const char *ccache_file = NULL;
@@ -791,7 +791,6 @@ static void get_user_attr_done(void *pvt, int err, struct ldb_result *res)
goto failed;
}
- pd = kr->pd;
krb5_ctx = kr->krb5_ctx;
if (err != LDB_SUCCESS) {
@@ -999,8 +998,8 @@ static void krb5_child_done(struct tevent_req *req)
struct pam_data *pd = kr->pd;
struct be_req *be_req = kr->req;
int ret;
- uint8_t *buf;
- ssize_t len;
+ uint8_t *buf = NULL;
+ ssize_t len = -1;
ssize_t pref_len;
int p;
int32_t *msg_status;
diff --git a/server/responder/pam/pamsrv_cmd.c b/server/responder/pam/pamsrv_cmd.c
index c204e0a88..37aad8299 100644
--- a/server/responder/pam/pamsrv_cmd.c
+++ b/server/responder/pam/pamsrv_cmd.c
@@ -487,6 +487,7 @@ static void pam_reply(struct pam_auth_req *preq)
uint32_t user_info_type;
pd = preq->pd;
+ cctx = preq->cctx;
DEBUG(4, ("pam_reply get called.\n"));
@@ -548,8 +549,6 @@ static void pam_reply(struct pam_auth_req *preq)
}
}
- cctx = preq->cctx;
-
if (pd->response_delay > 0) {
ret = gettimeofday(&tv, NULL);
if (ret != EOK) {
diff --git a/server/util/find_uid.c b/server/util/find_uid.c
index 63907f17a..965966ef3 100644
--- a/server/util/find_uid.c
+++ b/server/util/find_uid.c
@@ -184,7 +184,7 @@ static errno_t get_active_uid_linux(hash_table_t *table, uid_t search_uid)
DIR *proc_dir = NULL;
struct dirent *dirent;
int ret;
- pid_t pid;
+ pid_t pid = -1;
uid_t uid;
hash_key_t key;