|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 3/3] libxl: ocaml: use 'for_app_registration' in osevent callbacks
Ian Campbell writes ("Re: [PATCH 3/3] libxl: ocaml: use 'for_app_registration'
in osevent callbacks"):
> > @@ -1241,32 +1255,43 @@ int fd_modify(void *user, int fd, void
> > **for_app_registration_update,
...
> > + /* if for_app == NULL, assume that something is wrong and don't
> > callback */
> > + if (for_app) {
>
> if (!for_app) {
> cleanup
> return;
> }
Why not
assert(for_app)
?
> Actually, elsewhere you don't bother to check for_app. If this would
> indicate a major error then I think an assert would be perfectly
> reasonably.
:-).
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |