diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-20 21:49:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-20 21:49:30 +0000 |
commit | b0f86654d3982ec3e78264e7628718e6ae18e12c (patch) | |
tree | f6f1a43aea77a33e57c4446f7a79e32179fccbb7 /lib/libc/rpc/clnt_simple.c | |
parent | a2dd9b690f0078a3e6a1fb76a97c846f4c185a06 (diff) |
All these files include <stdlib.h>, so do not need to cast
malloc/calloc/realloc* returns.
Diffstat (limited to 'lib/libc/rpc/clnt_simple.c')
-rw-r--r-- | lib/libc/rpc/clnt_simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_simple.c b/lib/libc/rpc/clnt_simple.c index 2873befc48e..ca53644d8a7 100644 --- a/lib/libc/rpc/clnt_simple.c +++ b/lib/libc/rpc/clnt_simple.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clnt_simple.c,v 1.17 2015/01/16 16:48:51 deraadt Exp $ */ +/* $OpenBSD: clnt_simple.c,v 1.18 2015/08/20 21:49:29 deraadt Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -64,7 +64,7 @@ callrpc(char *host, int prognum, int versnum, int procnum, xdrproc_t inproc, struct timeval timeout, tottimeout; if (crp == NULL) { - crp = (struct callrpc_private *)calloc(1, sizeof (*crp)); + crp = calloc(1, sizeof (*crp)); if (crp == NULL) return RPC_SYSTEMERROR; callrpc_private = crp; |