@@ -840,9 +840,9 @@ void qemu_check_nic_model(NICInfo *nd, const char *model)
models[1] = NULL;
if (qemu_show_nic_models(nd->model, models))
- exit(0);
+ exit(EXIT_SUCCESS);
if (qemu_find_nic_model(nd, models, model) < 0)
- exit(1);
+ exit(EXIT_FAILURE);
}
int qemu_find_nic_model(NICInfo *nd, const char * const *models,
@@ -172,7 +172,7 @@ fork_exec(struct socket *so, const char *ex, int do_pty)
fprintf(stderr, "Error: execvp of %s failed: %s\n",
argv[0], strerror(errno));
close(0); close(1); close(2); /* XXX */
- exit(1);
+ exit(EXIT_FAILURE);
default:
qemu_add_child_watch(pid);
This patch is the result of coccinelle script scripts/coccinelle/exit.cocci Signed-off-by: Laurent Vivier <lvivier@redhat.com> CC: Jason Wang <jasowang@redhat.com> --- net/net.c | 4 ++-- slirp/misc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)