From d7d75fd311e6c8ebd799160411efe2a3ab3500c9 Mon Sep 17 00:00:00 2001 From: "C. Davis" Date: Sat, 18 Aug 2012 23:44:59 -0700 Subject: regedit: Fix white space and wrap long lines. Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam --- source3/utils/regedit_dialog.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'source3/utils/regedit_dialog.c') diff --git a/source3/utils/regedit_dialog.c b/source3/utils/regedit_dialog.c index 04b88b5488..d5bd426e7c 100644 --- a/source3/utils/regedit_dialog.c +++ b/source3/utils/regedit_dialog.c @@ -179,8 +179,8 @@ static int dialog_getch(struct dialog *dia) return c; } -struct dialog *dialog_center_new(TALLOC_CTX *ctx, const char *title, int nlines, - int ncols) +struct dialog *dialog_center_new(TALLOC_CTX *ctx, const char *title, + int nlines, int ncols) { struct dialog *dia; int y, x; @@ -447,7 +447,8 @@ int dialog_input(TALLOC_CTX *ctx, char **output, const char *title, if (c == '\t' || c == KEY_BTAB) { if (input_section) { - if (form_driver(input,REQ_VALIDATION) == E_OK) { + int valid = form_driver(input, REQ_VALIDATION); + if (valid == E_OK) { input_section = false; if (c == '\t') { menu_driver(dia->choices, @@ -809,7 +810,8 @@ static void section_up(struct edit_dialog *edit) if (edit->buf) { hexedit_set_cursor(edit->buf); } else { - set_current_field(edit->input, edit->field[FLD_DATA]); + set_current_field(edit->input, + edit->field[FLD_DATA]); pos_form_cursor(edit->input); } } else { @@ -990,8 +992,8 @@ static WERROR edit_init_form(struct edit_dialog *edit, uint32_t type, return WERR_OK; } -WERROR dialog_edit_value(TALLOC_CTX *ctx, struct registry_key *key, uint32_t type, - const struct value_item *vitem) +WERROR dialog_edit_value(TALLOC_CTX *ctx, struct registry_key *key, + uint32_t type, const struct value_item *vitem) { struct edit_dialog *edit; #define DIALOG_RESIZE 2 -- cgit