Author: tridge
Date: 2006-09-10 10:00:42 +0000 (Sun, 10 Sep 2006)
New Revision: 18321

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18321

Log:

fixed some warnings on AIX

Modified:
   branches/SAMBA_4_0/source/auth/gensec/gensec.c
   branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_inbound.c
   branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c
   branches/SAMBA_4_0/source/lib/replace/snprintf.c
   branches/SAMBA_4_0/source/lib/socket/socket_ipv6.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/gensec/gensec.c
===================================================================
--- branches/SAMBA_4_0/source/auth/gensec/gensec.c      2006-09-10 08:08:20 UTC 
(rev 18320)
+++ branches/SAMBA_4_0/source/auth/gensec/gensec.c      2006-09-10 10:00:42 UTC 
(rev 18321)
@@ -729,7 +729,7 @@
 _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;

Modified: branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_inbound.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_inbound.c 2006-09-10 
08:08:20 UTC (rev 18320)
+++ branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_inbound.c 2006-09-10 
10:00:42 UTC (rev 18321)
@@ -68,7 +68,7 @@
 {
        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) {

Modified: branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c        
2006-09-10 08:08:20 UTC (rev 18320)
+++ branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map_outbound.c        
2006-09-10 10:00:42 UTC (rev 18321)
@@ -507,7 +507,7 @@
 /* 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 @@
 /* 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));

Modified: branches/SAMBA_4_0/source/lib/replace/snprintf.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/snprintf.c    2006-09-10 08:08:20 UTC 
(rev 18320)
+++ branches/SAMBA_4_0/source/lib/replace/snprintf.c    2006-09-10 10:00:42 UTC 
(rev 18321)
@@ -914,7 +914,7 @@
 static double my_modf(double x0, double *iptr)
 {
        int i;
-       LLONG l;
+       LLONG l=0;
        double x = x0;
        double f = 1.0;
 

Modified: branches/SAMBA_4_0/source/lib/socket/socket_ipv6.c
===================================================================
--- branches/SAMBA_4_0/source/lib/socket/socket_ipv6.c  2006-09-10 08:08:20 UTC 
(rev 18320)
+++ branches/SAMBA_4_0/source/lib/socket/socket_ipv6.c  2006-09-10 10:00:42 UTC 
(rev 18321)
@@ -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)

Reply via email to