Fix up some of the warnings that the build farm is finding ...
authorRichard Sharpe <sharpe@samba.org>
Mon, 5 May 2003 22:52:45 +0000 (22:52 +0000)
committerRichard Sharpe <sharpe@samba.org>
Mon, 5 May 2003 22:52:45 +0000 (22:52 +0000)
(This used to be commit 29d775fe68be8988e344c35106a80d6ca8236e4d)

source3/utils/editreg.c

index c45959799be736fe2aeae594e6e7e0c45fd12422..bda817310b9789b476085c870972e2a96b9b0691 100644 (file)
@@ -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;