On 07/17/2013 11:16 AM, Markus Armbruster wrote: > It exits on all error conditions but one, where it returns -1. > Normalize, and return void. > > Signed-off-by: Markus Armbruster <arm...@redhat.com> > --- > arch_init.c | 4 +--- > hw/i386/smbios.c | 10 +++++----- > include/hw/i386/smbios.h | 2 +- > 3 files changed, 7 insertions(+), 9 deletions(-) >
> @@ -242,5 +242,5 @@ int smbios_entry_add(const char *t) > } > > error_report("Must specify type= or file="); > - return -1; > + exit(1); I hate magic numbers; wouldn't exit(EXIT_FAILURE) be more explicit at your intent? At any rate, you're not the first person to use exit(1), so: Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature