summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2003-05-05 22:52:45 +0000
committerRichard Sharpe <sharpe@samba.org>2003-05-05 22:52:45 +0000
commit7cd3bdc7846e8d93c37d0f9e470d31ec23c4dad1 (patch)
treee35288fd3eefc2befb83cd021365bad2376d271f /source3
parent244f10d7a9d210a197befc3941b5a8a359f14fba (diff)
downloadsamba-7cd3bdc7846e8d93c37d0f9e470d31ec23c4dad1.tar.gz
samba-7cd3bdc7846e8d93c37d0f9e470d31ec23c4dad1.tar.bz2
samba-7cd3bdc7846e8d93c37d0f9e470d31ec23c4dad1.zip
Fix up some of the warnings that the build farm is finding ...
(This used to be commit 29d775fe68be8988e344c35106a80d6ca8236e4d)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/editreg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/utils/editreg.c b/source3/utils/editreg.c
index c45959799b..bda817310b 100644
--- a/source3/utils/editreg.c
+++ b/source3/utils/editreg.c
@@ -1041,7 +1041,6 @@ void *str_to_val(int type, char *val, int *len)
default:
return NULL;
- break;
}
return NULL;
@@ -1212,7 +1211,7 @@ int string_to_sid(DOM_SID **sid, char *sid_str)
lstr = strchr(lstr + 1, '-');
}
- return 1;
+ /*return 1; */ /* Not Reached ... */
}
/*
@@ -1380,7 +1379,7 @@ REG_KEY *nt_add_reg_key_list(REGF *regf, REG_KEY *key, char * name, int create)
else { /* Create more space in the list ... */
if (!(list = (KEY_LIST *)realloc(list, sizeof(KEY_LIST) +
(list->max_keys + REG_KEY_LIST_SIZE - 1)
- * sizeof(REG_KEY *))));
+ * sizeof(REG_KEY *))))
goto error;
list->max_keys += REG_KEY_LIST_SIZE;