1
0
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:
Gerald Carter
-
parent 95e33b1250
commit e1fac713e2
7 changed files with 8 additions and 10 deletions

View File

@ -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;
};
}

View File

@ -330,8 +330,8 @@ BOOL dfs_redirect(char* pathname, connection_struct* conn,
pathname));
return False;
}
/* never reached */
return False;
}
/**********************************************************************

View File

@ -895,6 +895,5 @@ BOOL get_trust_pw(const char *domain, uint8 ret_pwd[16],
}
/* Failure */
return False;
}

View File

@ -655,7 +655,7 @@ done:
prs_mem_free(&rbuf);
return result;
};
}
/* Enumerate domain groups */

View File

@ -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;
};
};
}

View File

@ -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 );
}

View File

@ -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)