diff options
author | alfred <alfred@FreeBSD.org> | 2002-07-15 18:53:52 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-07-15 18:53:52 +0000 |
commit | c3235f750b02574c924bd70d70c08a3ead656f33 (patch) | |
tree | d0f20a602094bf34653afd550a146853fe0f1330 /usr.sbin | |
parent | 83a53d0868085db818fddd8cb38eecc0c39cad8d (diff) | |
download | FreeBSD-src-c3235f750b02574c924bd70d70c08a3ead656f33.zip FreeBSD-src-c3235f750b02574c924bd70d70c08a3ead656f33.tar.gz |
do not call clnt_spcreateerror nor clnt_sperror with a NULL pointer, instead
pass an empty string.
Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/spray/spray.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/spray/spray.c b/usr.sbin/spray/spray.c index 39759eb..0e072e2 100644 --- a/usr.sbin/spray/spray.c +++ b/usr.sbin/spray/spray.c @@ -123,7 +123,7 @@ main(int argc, char *argv[]) /* create connection with server */ cl = clnt_create(*argv, SPRAYPROG, SPRAYVERS, "udp"); if (cl == NULL) - errx(1, "%s", clnt_spcreateerror(NULL)); + errx(1, "%s", clnt_spcreateerror("")); /* @@ -139,7 +139,7 @@ main(int argc, char *argv[]) /* Clear server statistics */ if (clnt_call(cl, SPRAYPROC_CLEAR, (xdrproc_t)xdr_void, NULL, (xdrproc_t)xdr_void, NULL, TIMEOUT) != RPC_SUCCESS) - errx(1, "%s", clnt_sperror(cl, NULL)); + errx(1, "%s", clnt_sperror(cl, "")); /* Spray server with packets */ @@ -160,7 +160,7 @@ main(int argc, char *argv[]) /* Collect statistics from server */ if (clnt_call(cl, SPRAYPROC_GET, (xdrproc_t)xdr_void, NULL, (xdrproc_t)xdr_spraycumul, &host_stats, TIMEOUT) != RPC_SUCCESS) - errx(1, "%s", clnt_sperror(cl, NULL)); + errx(1, "%s", clnt_sperror(cl, "")); xmit_time = host_stats.clock.sec + (host_stats.clock.usec / 1000000.0); |