if (subkey) {
msg = "Enter name of new subkey";
}
- dialog_input(regedit, &name, "New Key", msg);
+ dialog_input(regedit, &name, "New Key", "%s", msg);
if (name) {
WERROR rv;
struct registry_key *new_key;
return true;
}
+static int dialog_input_internal(TALLOC_CTX *ctx, void *output,
+ enum input_type type,
+ const char *title,
+ const char *msg, va_list ap)
+ PRINTF_ATTRIBUTE(5,0);
+
static int dialog_input_internal(TALLOC_CTX *ctx, void *output,
enum input_type type,
const char *title,
enum dialog_action *action);
struct dialog_section *dialog_section_label_new_va(TALLOC_CTX *ctx,
- const char *msg, va_list ap);
+ const char *msg,
+ va_list ap)
+ PRINTF_ATTRIBUTE(2,0);
struct dialog_section *dialog_section_label_new(TALLOC_CTX *ctx,
- const char *msg, ...);
+ const char *msg, ...)
+ PRINTF_ATTRIBUTE(2,3);
struct dialog_section *dialog_section_hsep_new(TALLOC_CTX *ctx, int sep);
};
int dialog_notice(TALLOC_CTX *ctx, enum dialog_type type,
- const char *title, const char *msg, ...);
+ const char *title, const char *msg, ...)
+ PRINTF_ATTRIBUTE(4,5);
int dialog_input(TALLOC_CTX *ctx, const char **output, const char *title,
- const char *msg, ...);
+ const char *msg, ...) PRINTF_ATTRIBUTE(4,5);
int dialog_input_long(TALLOC_CTX *ctx, long *output,
- const char *title, const char *msg, ...);
+ const char *title, const char *msg, ...)
+ PRINTF_ATTRIBUTE(4,5);
int dialog_input_ulong(TALLOC_CTX *ctx, unsigned long *output,
- const char *title, const char *msg, ...);
+ const char *title, const char *msg, ...)
+ PRINTF_ATTRIBUTE(4,5);
struct registry_key;
struct value_item;