mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
fix some warnings found by the Sun C compiler
This commit is contained in:
@ -841,5 +841,5 @@ UNISTR2* ucs2_to_unistr2(TALLOC_CTX *ctx, UNISTR2* dst, smb_ucs2_t* src)
|
||||
strncpy_w(dst->buffer, src, dst->uni_max_len);
|
||||
|
||||
return dst;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -330,8 +330,8 @@ BOOL dfs_redirect(char* pathname, connection_struct* conn,
|
||||
pathname));
|
||||
return False;
|
||||
}
|
||||
|
||||
/* never reached */
|
||||
return False;
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
|
@ -895,6 +895,5 @@ BOOL get_trust_pw(const char *domain, uint8 ret_pwd[16],
|
||||
}
|
||||
|
||||
/* Failure */
|
||||
return False;
|
||||
}
|
||||
|
||||
|
@ -655,7 +655,7 @@ done:
|
||||
prs_mem_free(&rbuf);
|
||||
|
||||
return result;
|
||||
};
|
||||
}
|
||||
|
||||
/* Enumerate domain groups */
|
||||
|
||||
|
@ -807,7 +807,7 @@ TDB_LIST_NODE *tdb_search_keys(TDB_CONTEXT *tdb, const char* pattern)
|
||||
|
||||
return list;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@ -825,6 +825,6 @@ void tdb_search_list_free(TDB_LIST_NODE* node)
|
||||
SAFE_FREE(node);
|
||||
node = next_node;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
@ -508,9 +508,8 @@ int net_groupmap(int argc, const char **argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ( argc )
|
||||
return net_run_function(argc, argv, func, net_help_groupmap);
|
||||
if ( 0 == argc )
|
||||
return net_help_groupmap( argc, argv );
|
||||
|
||||
return net_help_groupmap( argc, argv );
|
||||
}
|
||||
|
@ -1976,7 +1976,7 @@ static NTSTATUS rpc_query_domain_sid(const DOM_SID *domain_sid, struct cli_state
|
||||
sid_to_string(str_sid, domain_sid);
|
||||
d_printf("%s\n", str_sid);
|
||||
return NT_STATUS_OK;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
static int rpc_trustdom_list(int argc, const char **argv)
|
||||
|
Reference in New Issue
Block a user