1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Fix obvious compiler warnings.

Jeremy.
(This used to be commit 2a6d0c2481)
This commit is contained in:
Jeremy Allison 2003-05-12 21:27:54 +00:00
parent 0e23ce6fe9
commit 6abef08100
8 changed files with 1 additions and 9 deletions

View File

@ -26,7 +26,6 @@
static NTSTATUS guestsam_getsampwnam (struct pdb_methods *methods, SAM_ACCOUNT *sam_account, const char *sname)
{
NTSTATUS nt_status;
const char *guest_account = lp_guestaccount();
if (!sam_account || !sname) {

View File

@ -1599,7 +1599,6 @@ static BOOL init_sam_from_ldap (struct ldapsam_privates *ldap_state,
acct_desc,
munged_dial,
workstations;
struct passwd *pw;
uint32 user_rid;
uint8 smblmpwd[LM_HASH_LEN],
smbntpwd[NT_HASH_LEN];

View File

@ -99,7 +99,6 @@ static BOOL init_sam_from_buffer (struct tdbsam_privates *tdb_state,
uint32 len = 0;
uint32 lm_pw_len, nt_pw_len, hourslen;
BOOL ret = True;
struct passwd *pw;
uid_t uid = -1;
gid_t gid = -1;

View File

@ -3509,7 +3509,6 @@ NTSTATUS _samr_add_groupmem(pipes_struct *p, SAMR_Q_ADD_GROUPMEM *q_u, SAMR_R_AD
struct group *grp;
fstring grp_name;
GROUP_MAP map;
uid_t uid;
NTSTATUS ret;
SAM_ACCOUNT *sam_user=NULL;
BOOL check;

View File

@ -175,7 +175,6 @@ NTSTATUS uid_to_sid(DOM_SID *sid, uid_t uid)
NTSTATUS gid_to_sid(DOM_SID *sid, gid_t gid)
{
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
GROUP_MAP map;
unid_t id;
int flags;
@ -272,7 +271,6 @@ NTSTATUS sid_to_gid(const DOM_SID *sid, gid_t *gid)
{
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
BOOL fallback = False;
uint32 rid;
unid_t id;
int flags;

View File

@ -297,7 +297,6 @@ int vfswrap_chmod(vfs_handle_struct *handle, connection_struct *conn, const char
int vfswrap_fchmod(vfs_handle_struct *handle, files_struct *fsp, int fd, mode_t mode)
{
int result;
struct vfs_ops *vfs_ops = &fsp->conn->vfs;
START_PROFILE(syscall_fchmod);

View File

@ -159,7 +159,7 @@ retry:
* extract the realm and convert to upper case.
* This is only used to establish the connection.
*/
if (cp = strchr(ads->auth.user_name, '@')) {
if ((cp = strchr(ads->auth.user_name, '@'))!=0) {
*cp++ = '\0';
ads->auth.realm = smb_xstrdup(cp);
strupper(ads->auth.realm);

View File

@ -112,7 +112,6 @@ static int export_groups (struct pdb_context *in, struct pdb_context *out) {
static int print_sam_info (SAM_ACCOUNT *sam_pwent, BOOL verbosity, BOOL smbpwdstyle)
{
uid_t uid;
gid_t gid;
time_t tmp;
/* TODO: chaeck if entry is a user or a workstation */