diff options
author | Günther Deschner <gd@samba.org> | 2015-12-03 15:24:17 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-09-28 00:04:19 +0200 |
commit | b00f30c0ace1840904996e0358f3aa7cb9c702aa (patch) | |
tree | 22ccf6cd24ce23e70d34a9ea8250b5f2787ec5f7 /source3/utils/regedit_dialog.c | |
parent | 9c164efe2a0449d21e0fdfabd2299d0d18e753eb (diff) | |
download | samba-b00f30c0ace1840904996e0358f3aa7cb9c702aa.tar.gz |
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/utils/
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils/regedit_dialog.c')
-rw-r--r-- | source3/utils/regedit_dialog.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source3/utils/regedit_dialog.c b/source3/utils/regedit_dialog.c index 21ec96ccca6..dcce66bf208 100644 --- a/source3/utils/regedit_dialog.c +++ b/source3/utils/regedit_dialog.c @@ -345,7 +345,7 @@ WERROR dialog_create(struct dialog *dia) ncols += 6; dia->pad = newpad(nlines, ncols); if (dia->pad == NULL) { - rv = WERR_NOMEM; + rv = WERR_NOT_ENOUGH_MEMORY; goto fail; } dia->centered = false; @@ -355,12 +355,12 @@ WERROR dialog_create(struct dialog *dia) } dia->window = newwin(nlines, ncols, dia->y, dia->x); if (dia->window == NULL) { - rv = WERR_NOMEM; + rv = WERR_NOT_ENOUGH_MEMORY; goto fail; } dia->panel = new_panel(dia->window); if (dia->panel == NULL) { - rv = WERR_NOMEM; + rv = WERR_NOT_ENOUGH_MEMORY; goto fail; } @@ -398,7 +398,7 @@ WERROR dialog_create(struct dialog *dia) section->window = subpad(dia->pad, section->nlines, section->ncols, row, col); if (section->window == NULL) { - rv = WERR_NOMEM; + rv = WERR_NOT_ENOUGH_MEMORY; goto fail; } SMB_ASSERT(section->ops->create != NULL); @@ -742,14 +742,14 @@ static WERROR text_field_create(struct dialog *dia, text_field->field[0] = new_field(section->nlines, section->ncols, 0, 0, 0, 0); if (text_field->field[0] == NULL) { - return WERR_NOMEM; + return WERR_NOT_ENOUGH_MEMORY; } set_field_back(text_field->field[0], A_REVERSE); set_field_opts(text_field->field[0], text_field->opts); text_field->form = new_form(text_field->field); if (text_field->form == NULL) { - return WERR_NOMEM; + return WERR_NOT_ENOUGH_MEMORY; } set_form_win(text_field->form, dia->window); @@ -986,7 +986,7 @@ WERROR dialog_section_text_field_set_lines(TALLOC_CTX *ctx, talloc_array_length(buf) + length + padding + 1); if (buf == NULL) { - return WERR_NOMEM; + return WERR_NOT_ENOUGH_MEMORY; } memcpy(&buf[idx], *arrayp, length); idx += length; @@ -1066,7 +1066,7 @@ static WERROR hexedit_create(struct dialog *dia, hexedit->buf = hexedit_new(dia, section->window, NULL, HEXEDIT_MIN_SIZE); if (hexedit->buf == NULL) { - return WERR_NOMEM; + return WERR_NOT_ENOUGH_MEMORY; } hexedit_refresh(hexedit->buf); @@ -1912,7 +1912,7 @@ static WERROR fill_value_buffer(struct dialog *dia, struct edit_req *edit) } tmp = talloc_asprintf(dia, "%u", (unsigned)v); if (tmp == NULL) { - return WERR_NOMEM; + return WERR_NOT_ENOUGH_MEMORY; } dialog_section_text_field_set(data, tmp); talloc_free(tmp); @@ -1923,7 +1923,7 @@ static WERROR fill_value_buffer(struct dialog *dia, struct edit_req *edit) const char *s; if (!pull_reg_sz(dia, &edit->vitem->data, &s)) { - return WERR_NOMEM; + return WERR_NOT_ENOUGH_MEMORY; } dialog_section_text_field_set(data, s); break; @@ -1932,7 +1932,7 @@ static WERROR fill_value_buffer(struct dialog *dia, struct edit_req *edit) const char **array; if (!pull_reg_multi_sz(dia, &edit->vitem->data, &array)) { - return WERR_NOMEM; + return WERR_NOT_ENOUGH_MEMORY; } return dialog_section_text_field_set_lines(dia, data, array); } @@ -2018,7 +2018,7 @@ static bool edit_on_submit(struct dialog *dia, struct dialog_section *section, buf = dialog_section_text_field_get(dia, data); if (!buf || !push_reg_sz(dia, &blob, buf)) { - rv = WERR_NOMEM; + rv = WERR_NOT_ENOUGH_MEMORY; } break; } @@ -2027,7 +2027,7 @@ static bool edit_on_submit(struct dialog *dia, struct dialog_section *section, lines = dialog_section_text_field_get_lines(dia, data); if (!lines || !push_reg_multi_sz(dia, &blob, lines)) { - rv = WERR_NOMEM; + rv = WERR_NOT_ENOUGH_MEMORY; } break; } |