1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

r18321: fixed some warnings on AIX

(This used to be commit 449fab2c264aa50601f9a2d3310f1910ba97706b)
This commit is contained in:
Andrew Tridgell 2006-09-10 10:00:42 +00:00 committed by Gerald (Jerry) Carter
parent 3cc41b70da
commit 9adf2883ef
5 changed files with 6 additions and 5 deletions

View File

@ -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, _PUBLIC_ NTSTATUS gensec_start_mech_by_sasl_list(struct gensec_security *gensec_security,
const char **sasl_names) const char **sasl_names)
{ {
NTSTATUS nt_status; NTSTATUS nt_status = NT_STATUS_INVALID_PARAMETER;
TALLOC_CTX *mem_ctx = talloc_new(gensec_security); TALLOC_CTX *mem_ctx = talloc_new(gensec_security);
const struct gensec_security_ops **ops; const struct gensec_security_ops **ops;
int i; int i;

View File

@ -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_context *data = map_get_context(module);
const struct ldb_map_attribute *map = map_attr_find_local(data, attr_name); 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 */ /* Unknown attribute: ignore */
if (map == NULL) { if (map == NULL) {

View File

@ -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 */ /* 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) 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 */ /* Prepare new tree */
*new = talloc_memdup(mem_ctx, tree, sizeof(struct ldb_parse_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 */ /* 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) 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 */ /* Prepare new tree */
*new = talloc_memdup(mem_ctx, tree, sizeof(struct ldb_parse_tree)); *new = talloc_memdup(mem_ctx, tree, sizeof(struct ldb_parse_tree));

View File

@ -914,7 +914,7 @@ static LLONG ROUND(LDOUBLE value)
static double my_modf(double x0, double *iptr) static double my_modf(double x0, double *iptr)
{ {
int i; int i;
LLONG l; LLONG l=0;
double x = x0; double x = x0;
double f = 1.0; double f = 1.0;

View File

@ -21,6 +21,7 @@
#include "includes.h" #include "includes.h"
#include "lib/socket/socket.h" #include "lib/socket/socket.h"
#include "system/filesys.h" /* needed for close() */
#include "system/network.h" #include "system/network.h"
static struct in6_addr interpret_addr6(const char *name) static struct in6_addr interpret_addr6(const char *name)