diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-23 11:23:36 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-23 11:23:36 +0000 |
commit | 1f020b178664857b0e107778d04fb971a58e6230 (patch) | |
tree | c1cd86593b5d354091e0fa3201c5789bec5c53ad /libc/inet/rpc | |
parent | f1775381f91f1250b20f1949dfd0364ddb0ee9fc (diff) |
- trim any trailing whitespace
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r-- | libc/inet/rpc/clnt_perror.c | 2 | ||||
-rw-r--r-- | libc/inet/rpc/rcmd.c | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/libc/inet/rpc/clnt_perror.c b/libc/inet/rpc/clnt_perror.c index 89a31a2d6..7e6c907ce 100644 --- a/libc/inet/rpc/clnt_perror.c +++ b/libc/inet/rpc/clnt_perror.c @@ -258,7 +258,7 @@ clnt_sperror (CLIENT * rpch, const char *msg) case RPC_CANTSEND: case RPC_CANTRECV: __glibc_strerror_r (e.re_errno, chrbuf, sizeof chrbuf); - len = sprintf (str, "; errno = %s", chrbuf); + len = sprintf (str, "; errno = %s", chrbuf); str += len; break; diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c index fe00d6a78..cd8d620c0 100644 --- a/libc/inet/rpc/rcmd.c +++ b/libc/inet/rpc/rcmd.c @@ -53,7 +53,7 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - */ + */ #if 0 static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94"; @@ -144,7 +144,7 @@ libc_hidden_proto(rresvport) /* some forward declarations */ static int __ivaliduser2(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser, const char *rhost); -static int iruserok2 (u_int32_t raddr, int superuser, const char *ruser, +static int iruserok2 (u_int32_t raddr, int superuser, const char *ruser, const char *luser, const char *rhost); @@ -178,7 +178,7 @@ int rcmd(ahost, rport, locuser, remuser, cmd, fd2p) tmphstbuf = malloc (hstbuflen); #endif - while (gethostbyname_r (*ahost, &hostbuf, tmphstbuf, + while (gethostbyname_r (*ahost, &hostbuf, tmphstbuf, hstbuflen, &hp, &herr) != 0 || hp == NULL) { if (herr != NETDB_INTERNAL || errno != ERANGE) @@ -212,7 +212,7 @@ int rcmd(ahost, rport, locuser, remuser, cmd, fd2p) #endif pfd[0].events = POLLIN; pfd[1].events = POLLIN; - + *ahost = hp->h_name; oldmask = sigblock(sigmask(SIGURG)); /* __sigblock */ for (timo = 1, lport = IPPORT_RESERVED - 1;;) { @@ -361,7 +361,7 @@ int rresvport(int *alport) return -1; } } - + return -1; } libc_hidden_def(rresvport) @@ -394,8 +394,8 @@ int ruserok(rhost, superuser, ruser, luser) buffer = malloc (buflen); #endif - while (gethostbyname_r (rhost, &hostbuf, buffer, - buflen, &hp, &herr) != 0 || hp == NULL) + while (gethostbyname_r (rhost, &hostbuf, buffer, + buflen, &hp, &herr) != 0 || hp == NULL) { if (herr != NETDB_INTERNAL || errno != ERANGE) { #ifndef __ARCH_USE_MMU__ @@ -493,7 +493,7 @@ iruserok2 (raddr, superuser, ruser, luser, rhost) if (!superuser) hostf = iruserfopen (_PATH_HEQUIV, 0); - + if (hostf) { isbad = __ivaliduser2 (hostf, raddr, luser, ruser, rhost); fclose (hostf); @@ -517,7 +517,7 @@ iruserok2 (raddr, superuser, ruser, luser, rhost) char *buffer = malloc (buflen); #endif - if (getpwnam_r (luser, &pwdbuf, buffer, + if (getpwnam_r (luser, &pwdbuf, buffer, buflen, &pwd) != 0 || pwd == NULL) { #ifndef __ARCH_USE_MMU__ @@ -545,12 +545,12 @@ iruserok2 (raddr, superuser, ruser, luser, rhost) seteuid (pwd->pw_uid); hostf = iruserfopen (pbuf, pwd->pw_uid); free(pbuf); - + if (hostf != NULL) { isbad = __ivaliduser2 (hostf, raddr, luser, ruser, rhost); fclose (hostf); } - + seteuid (uid); return isbad; } |