From: deraadt Date: Mon, 18 Jul 2022 02:31:19 +0000 (+0000) Subject: use same way of reporting error as yp_bind.c X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7150dbc109a6e5f7b276a9a373aabfb1353a107a;p=openbsd use same way of reporting error as yp_bind.c Though really, should we be splatting to stdout/stderr? The mysteries of ancient code... --- diff --git a/lib/libc/yp/yp_all.c b/lib/libc/yp/yp_all.c index 78dd259d496..04a6ebe2b49 100644 --- a/lib/libc/yp/yp_all.c +++ b/lib/libc/yp/yp_all.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yp_all.c,v 1.14 2022/07/17 03:08:58 deraadt Exp $ */ +/* $OpenBSD: yp_all.c,v 1.15 2022/07/18 02:31:19 deraadt Exp $ */ /* * Copyright (c) 1992, 1993 Theo de Raadt * All rights reserved. @@ -132,7 +132,7 @@ again: if (ypbinding->dom_client == NULL) { close(ypbinding->dom_socket); free(ypbinding); - printf("clnttcp_create failed\n"); + clnt_pcreateerror("clnttcp_create"); goto again; } clnt_control(ypbinding->dom_client, CLSET_CONNECTED, &connected);