summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-10 10:00:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:08 -0500
commit9adf2883efc275b359d8e50c493023c48883eef6 (patch)
treefeb7808b357720d0fd535d46df45a2b43c4d2613
parent3cc41b70daac63fc07756d73e8fd8e89450882c4 (diff)
downloadsamba-9adf2883efc275b359d8e50c493023c48883eef6.tar.gz
samba-9adf2883efc275b359d8e50c493023c48883eef6.tar.bz2
samba-9adf2883efc275b359d8e50c493023c48883eef6.zip
r18321: fixed some warnings on AIX
(This used to be commit 449fab2c264aa50601f9a2d3310f1910ba97706b)
-rw-r--r--source4/auth/gensec/gensec.c2
-rw-r--r--source4/lib/ldb/modules/ldb_map_inbound.c2
-rw-r--r--source4/lib/ldb/modules/ldb_map_outbound.c4
-rw-r--r--source4/lib/replace/snprintf.c2
-rw-r--r--source4/lib/socket/socket_ipv6.c1
5 files changed, 6 insertions, 5 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c
index dcbda70c68..b44dd9efcb 100644
--- a/source4/auth/gensec/gensec.c
+++ b/source4/auth/gensec/gensec.c
@@ -729,7 +729,7 @@ NTSTATUS gensec_start_mech_by_sasl_name(struct gensec_security *gensec_security,
_PUBLIC_ NTSTATUS gensec_start_mech_by_sasl_list(struct gensec_security *gensec_security,
const char **sasl_names)
{
- NTSTATUS nt_status;
+ NTSTATUS nt_status = NT_STATUS_INVALID_PARAMETER;
TALLOC_CTX *mem_ctx = talloc_new(gensec_security);
const struct gensec_security_ops **ops;
int i;
diff --git a/source4/lib/ldb/modules/ldb_map_inbound.c b/source4/lib/ldb/modules/ldb_map_inbound.c
index b9119f341a..404b2ce528 100644
--- a/source4/lib/ldb/modules/ldb_map_inbound.c
+++ b/source4/lib/ldb/modules/ldb_map_inbound.c
@@ -68,7 +68,7 @@ static int ldb_msg_el_partition(struct ldb_module *module, struct ldb_message *l
{
const struct ldb_map_context *data = map_get_context(module);
const struct ldb_map_attribute *map = map_attr_find_local(data, attr_name);
- struct ldb_message_element *el;
+ struct ldb_message_element *el=NULL;
/* Unknown attribute: ignore */
if (map == NULL) {
diff --git a/source4/lib/ldb/modules/ldb_map_outbound.c b/source4/lib/ldb/modules/ldb_map_outbound.c
index 7d1649c6f5..bd30d8ca27 100644
--- a/source4/lib/ldb/modules/ldb_map_outbound.c
+++ b/source4/lib/ldb/modules/ldb_map_outbound.c
@@ -507,7 +507,7 @@ static int map_subtree_select_local_not(struct ldb_module *module, void *mem_ctx
/* Select a list of subtrees that query attributes in the local partition */
static int map_subtree_select_local_list(struct ldb_module *module, void *mem_ctx, struct ldb_parse_tree **new, const struct ldb_parse_tree *tree)
{
- int i, j, ret;
+ int i, j, ret=0;
/* Prepare new tree */
*new = talloc_memdup(mem_ctx, tree, sizeof(struct ldb_parse_tree));
@@ -630,7 +630,7 @@ static int map_subtree_collect_remote_not(struct ldb_module *module, void *mem_c
/* Collect a list of subtrees that query attributes in the remote partition */
static int map_subtree_collect_remote_list(struct ldb_module *module, void *mem_ctx, struct ldb_parse_tree **new, const struct ldb_parse_tree *tree)
{
- int i, j, ret;
+ int i, j, ret=0;
/* Prepare new tree */
*new = talloc_memdup(mem_ctx, tree, sizeof(struct ldb_parse_tree));
diff --git a/source4/lib/replace/snprintf.c b/source4/lib/replace/snprintf.c
index c06e8d76a3..1ff3c1e324 100644
--- a/source4/lib/replace/snprintf.c
+++ b/source4/lib/replace/snprintf.c
@@ -914,7 +914,7 @@ static LLONG ROUND(LDOUBLE value)
static double my_modf(double x0, double *iptr)
{
int i;
- LLONG l;
+ LLONG l=0;
double x = x0;
double f = 1.0;
diff --git a/source4/lib/socket/socket_ipv6.c b/source4/lib/socket/socket_ipv6.c
index 7c349a4cdb..06734a190c 100644
--- a/source4/lib/socket/socket_ipv6.c
+++ b/source4/lib/socket/socket_ipv6.c
@@ -21,6 +21,7 @@
#include "includes.h"
#include "lib/socket/socket.h"
+#include "system/filesys.h" /* needed for close() */
#include "system/network.h"
static struct in6_addr interpret_addr6(const char *name)