struct bitmap {
uint32 *b;
- int n;
+ unsigned int n;
};
#define FLAG_BASIC 0x0001 /* fundamental options */
****************************************************************************/
int bitmap_find(struct bitmap *bm, unsigned ofs)
{
- int i, j;
+ unsigned int i, j;
if (ofs > bm->n) ofs = 0;
i_len=srclen;
o_len=destlen;
retval = smb_iconv(descriptor, &inbuf, &i_len, &outbuf, &o_len);
- if(retval==-1) {
+ if(retval==(size_t)-1) {
const char *reason="unknown error";
switch(errno) {
case EINVAL:
retval = smb_iconv(descriptor,
&inbuf, &i_len,
&outbuf, &o_len);
- if(retval == -1) {
+ if(retval == (size_t)-1) {
const char *reason="unknown error";
switch(errno) {
case EINVAL:
* @return nt status code of rpc response
**/
-NTSTATUS secrets_get_trusted_domains(TALLOC_CTX* ctx, int* enum_ctx, int max_num_domains, int *num_domains, TRUSTDOM ***domains)
+NTSTATUS secrets_get_trusted_domains(TALLOC_CTX* ctx, int* enum_ctx, unsigned int max_num_domains, int *num_domains, TRUSTDOM ***domains)
{
TDB_LIST_NODE *keys, *k;
TRUSTDOM *dom = NULL;
char *pattern;
- int start_idx;
+ unsigned int start_idx;
uint32 idx = 0;
size_t size;
fstring dom_name;
/****************************************************************************
find a conn given a cnum
****************************************************************************/
-connection_struct *conn_find(int cnum)
+connection_struct *conn_find(unsigned cnum)
{
int count=0;
connection_struct *conn;
void conn_clear_vuid_cache(uint16 vuid)
{
connection_struct *conn;
- int i;
+ unsigned int i;
for (conn=Connections;conn;conn=conn->next) {
if (conn->vuid == vuid) {