提交 179d92c8 编写于 作者: M Michal Privoznik

libvirt-domain: Drop virDomainMigrateCheckNotLocal attribute

Our apibuild.py script does not cope with ATTRIBUTE_NONNULL:

Parse Error: parsing function type, ')' expected
Got token  ('name', 'char')
Last token:  ('name', 'char')
Token queue:  [('op', '*'), ('name', 'dconnuri'), ('sep', ')')]
Line 3297 end:
Makefile:2441: recipe for target '../../docs/apibuild.py.stamp' failed

Let's drop it. Moreover, up until e17ae3cc where it was
introduced we did not really care about NULL-ity of dconnuri. And
moreover the ATTRIBUTE_NONNULL merely checks for static calls
over NULL, it won't catch the dynamic ones, where a NULL is
passed by a variable at runtime.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 5275c0f4
...@@ -3293,7 +3293,7 @@ virDomainMigrateVersion3Params(virDomainPtr domain, ...@@ -3293,7 +3293,7 @@ virDomainMigrateVersion3Params(virDomainPtr domain,
} }
static int ATTRIBUTE_NONNULL(1) static int
virDomainMigrateCheckNotLocal(const char *dconnuri) virDomainMigrateCheckNotLocal(const char *dconnuri)
{ {
virURIPtr tempuri = NULL; virURIPtr tempuri = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册