On Sun, Nov 30, 2008 at 11:58:50PM +0000, Daniel P. Berrange wrote: > This patch reduces the number of exit paths in the OpenVZ driver methods [...] > +#define PROGRAM_SENTINAL ((char *)0x1) > +static void openvzSetProgramSentinal(const char **prog, const char *key) > +{ > + const char **tmp = prog; > + while (tmp && *tmp) { > + if (*tmp == PROGRAM_SENTINAL) { > + *tmp = key; > + break; > + } > + tmp++; > + } > +} okay, it's a bit weird, maybe a small comment like /* * used to update the command line when the domain parameter name is * known. */ would help people trying to read the code :-) [...] fine by me, +1 Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@xxxxxxxxxxxx | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list