git: rpc: Fix xdr_* macros and limit buffer sizes.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Fri Feb 2 01:02:58 PST 2018


commit 65ebff40bad065cba7ef5daf1c3c241e91d349af
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Jan 30 09:02:49 2018 +0200

    rpc: Fix xdr_* macros and limit buffer sizes.
    
    While there, constify few things.
    
    Taken-from: FreeBSD

Summary of changes:
 include/rpc/rpcent.h            |  2 +-
 include/rpc/xdr.h               | 16 ++++++----------
 lib/libc/rpc/clnt_simple.c      | 21 +++++++++++----------
 lib/libc/rpc/getrpcent.3        |  5 ++---
 lib/libc/rpc/getrpcent.c        |  2 +-
 lib/libc/rpc/rpc_callmsg.c      |  9 ++++-----
 lib/libc/rpc/rpc_prot.c         | 13 ++++++-------
 lib/libc/rpc/rpcb_prot.c        | 31 ++++++++++++++++---------------
 lib/libc/rpc/rpcb_st_xdr.c      | 31 ++++++++++++++++---------------
 usr.sbin/rpcbind/rpcb_svc_com.c | 10 ++++++----
 10 files changed, 69 insertions(+), 71 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/65ebff40bad065cba7ef5daf1c3c241e91d349af


-- 
DragonFly BSD source repository



More information about the Commits mailing list