diff options
Diffstat (limited to 'source4/lib/registry')
-rw-r--r-- | source4/lib/registry/tools/gregedit.c | 6 | ||||
-rw-r--r-- | source4/lib/registry/tools/regdiff.c | 4 | ||||
-rw-r--r-- | source4/lib/registry/tools/regpatch.c | 2 | ||||
-rw-r--r-- | source4/lib/registry/tools/regshell.c | 6 | ||||
-rw-r--r-- | source4/lib/registry/tools/regtree.c | 5 |
5 files changed, 13 insertions, 10 deletions
diff --git a/source4/lib/registry/tools/gregedit.c b/source4/lib/registry/tools/gregedit.c index 10e5f45468..4bbde9a37d 100644 --- a/source4/lib/registry/tools/gregedit.c +++ b/source4/lib/registry/tools/gregedit.c @@ -723,10 +723,12 @@ GtkWidget* create_savefilewin (void) return savefilewin; } -int main (int argc, char *argv[]) + int main(int argc, char *argv[]) { poptContext pc; - const char *backend = NULL, *credentials = NULL, *location; + const char *backend = NULL; + const char *credentials = NULL; + const char *location; int opt; struct poptOption long_options[] = { POPT_AUTOHELP diff --git a/source4/lib/registry/tools/regdiff.c b/source4/lib/registry/tools/regdiff.c index 305a7a1e46..c3633ef0af 100644 --- a/source4/lib/registry/tools/regdiff.c +++ b/source4/lib/registry/tools/regdiff.c @@ -59,7 +59,7 @@ void writediff(REG_KEY *oldkey, REG_KEY *newkey, FILE *out) for(i = 0; W_ERROR_IS_OK(error1 = reg_key_get_value_by_index(newkey, i, &v1)); i++) { error2 = reg_key_get_value_by_name(oldkey, reg_val_name(v1), &v2); - if ((W_ERROR_IS_OK(error2) && reg_val_size(v2) != reg_val_size(v1) || memcmp(reg_val_data_blk(v1), reg_val_data_blk(v2), reg_val_size(v1))) + if (((W_ERROR_IS_OK(error2) && reg_val_size(v2) != reg_val_size(v1)) || memcmp(reg_val_data_blk(v1), reg_val_data_blk(v2), reg_val_size(v1))) || W_ERROR_EQUAL(error2, WERR_DEST_NOT_FOUND)) { fprintf(out, "\"%s\"=%s:%s\n", reg_val_name(v1), str_regtype(reg_val_type(v1)), reg_val_data_string(v1)); } @@ -91,7 +91,7 @@ void writediff(REG_KEY *oldkey, REG_KEY *newkey, FILE *out) } } -int main (int argc, char **argv) + int main(int argc, char **argv) { int opt; poptContext pc; diff --git a/source4/lib/registry/tools/regpatch.c b/source4/lib/registry/tools/regpatch.c index e632edaa49..d4b036afe9 100644 --- a/source4/lib/registry/tools/regpatch.c +++ b/source4/lib/registry/tools/regpatch.c @@ -752,7 +752,7 @@ int nt_apply_reg_command_file(REG_KEY *root, const char *cmd_file_name) return modified; } -int main (int argc, char **argv) + int main(int argc, char **argv) { int opt; poptContext pc; diff --git a/source4/lib/registry/tools/regshell.c b/source4/lib/registry/tools/regshell.c index 8ee2a65d06..b78f4256f0 100644 --- a/source4/lib/registry/tools/regshell.c +++ b/source4/lib/registry/tools/regshell.c @@ -199,9 +199,9 @@ REG_KEY *process_cmd(REG_KEY *k, char *line) int main (int argc, char **argv) { int opt; - char *backend = "dir"; - char *credentials = NULL; - REG_KEY *curkey = NULL;; + const char *backend = "dir"; + const char *credentials = NULL; + REG_KEY *curkey = NULL; poptContext pc; WERROR error; REG_HANDLE *h; diff --git a/source4/lib/registry/tools/regtree.c b/source4/lib/registry/tools/regtree.c index 94018bdc5c..4d0d4b2909 100644 --- a/source4/lib/registry/tools/regtree.c +++ b/source4/lib/registry/tools/regtree.c @@ -58,10 +58,11 @@ void print_tree(int l, REG_KEY *p, int fullpath, int novals) } } -int main (int argc, char **argv) + int main(int argc, char **argv) { int opt; - char *backend = "dir", *credentials = NULL; + const char *backend = "dir"; + const char *credentials = NULL; poptContext pc; REG_KEY *root; REG_HANDLE *h; |