mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
lxcError: mark a string and add to the list of nearly-checked functions
* Makefile.maint (msg_gen_function): Add, but commented-out. * src/lxc_conf.c (lxcParseXML): Mark a diagnostic for translation.
This commit is contained in:
parent
76a7098407
commit
c5adab5270
@ -1,5 +1,9 @@
|
|||||||
Thu Mar 27 14:36:56 CET 2008 Jim Meyering <meyering@redhat.com>
|
Thu Mar 27 14:36:56 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
lxcError: mark a string and add to the list of nearly-checked functions
|
||||||
|
* Makefile.maint (msg_gen_function): Add, but commented-out.
|
||||||
|
* src/lxc_conf.c (lxcParseXML): Mark a diagnostic for translation.
|
||||||
|
|
||||||
testError: mark most string arguments for translation
|
testError: mark most string arguments for translation
|
||||||
* Makefile.maint (msg_gen_function): Add testError
|
* Makefile.maint (msg_gen_function): Add testError
|
||||||
* src/test.c (testDomainSave, testDomainRestore): Mark strings.
|
* src/test.c (testDomainSave, testDomainRestore): Mark strings.
|
||||||
|
@ -323,6 +323,7 @@ msg_gen_function += openvzLog
|
|||||||
# msg_gen_function += error
|
# msg_gen_function += error
|
||||||
# msg_gen_function += virXenError
|
# msg_gen_function += virXenError
|
||||||
# msg_gen_function += testError
|
# msg_gen_function += testError
|
||||||
|
# msg_gen_function += lxcError
|
||||||
|
|
||||||
func_or := $(shell printf '$(msg_gen_function)'|tr -s '[[:space:]]' '|')
|
func_or := $(shell printf '$(msg_gen_function)'|tr -s '[[:space:]]' '|')
|
||||||
func_re := ($(func_or))
|
func_re := ($(func_or))
|
||||||
|
@ -398,7 +398,7 @@ static lxc_vm_def_t * lxcParseXML(virConnectPtr conn, xmlDocPtr docPtr)
|
|||||||
if ((xmlProp = xmlGetProp(rootNodePtr, BAD_CAST "id"))) {
|
if ((xmlProp = xmlGetProp(rootNodePtr, BAD_CAST "id"))) {
|
||||||
if (0 > virStrToLong_i((char*)xmlProp, NULL, 10, &(containerDef->id))) {
|
if (0 > virStrToLong_i((char*)xmlProp, NULL, 10, &(containerDef->id))) {
|
||||||
lxcError(conn, NULL, VIR_ERR_INTERNAL_ERROR,
|
lxcError(conn, NULL, VIR_ERR_INTERNAL_ERROR,
|
||||||
"invalid domain id");
|
_("invalid domain id"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user