N_()ify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23763 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -52,13 +52,13 @@ krb5_get_init_creds_opt_alloc(krb5_context context,
|
|||||||
*opt = NULL;
|
*opt = NULL;
|
||||||
o = calloc(1, sizeof(*o));
|
o = calloc(1, sizeof(*o));
|
||||||
if (o == NULL) {
|
if (o == NULL) {
|
||||||
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
krb5_get_init_creds_opt_init(o);
|
krb5_get_init_creds_opt_init(o);
|
||||||
o->opt_private = calloc(1, sizeof(*o->opt_private));
|
o->opt_private = calloc(1, sizeof(*o->opt_private));
|
||||||
if (o->opt_private == NULL) {
|
if (o->opt_private == NULL) {
|
||||||
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
|
||||||
free(o);
|
free(o);
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
@@ -77,7 +77,7 @@ _krb5_get_init_creds_opt_copy(krb5_context context,
|
|||||||
*out = NULL;
|
*out = NULL;
|
||||||
opt = calloc(1, sizeof(*opt));
|
opt = calloc(1, sizeof(*opt));
|
||||||
if (opt == NULL) {
|
if (opt == NULL) {
|
||||||
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
if (in)
|
if (in)
|
||||||
@@ -85,7 +85,7 @@ _krb5_get_init_creds_opt_copy(krb5_context context,
|
|||||||
if(opt->opt_private == NULL) {
|
if(opt->opt_private == NULL) {
|
||||||
opt->opt_private = calloc(1, sizeof(*opt->opt_private));
|
opt->opt_private = calloc(1, sizeof(*opt->opt_private));
|
||||||
if (opt->opt_private == NULL) {
|
if (opt->opt_private == NULL) {
|
||||||
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
|
||||||
free(opt);
|
free(opt);
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
@@ -327,7 +327,8 @@ require_ext_opt(krb5_context context,
|
|||||||
const char *type)
|
const char *type)
|
||||||
{
|
{
|
||||||
if (opt->opt_private == NULL) {
|
if (opt->opt_private == NULL) {
|
||||||
krb5_set_error_message(context, EINVAL, "%s on non extendable opt", type);
|
krb5_set_error_message(context, EINVAL,
|
||||||
|
N_("%s on non extendable opt", ""), type);
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
@@ -381,7 +382,7 @@ krb5_get_init_creds_opt_get_error(krb5_context context,
|
|||||||
|
|
||||||
*error = malloc(sizeof(**error));
|
*error = malloc(sizeof(**error));
|
||||||
if (*error == NULL) {
|
if (*error == NULL) {
|
||||||
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
krb5_set_error_message(context, ENOMEM, N_("malloc: out of memory", ""));
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user