[nfs] : optimize code format

This commit is contained in:
SummerGift 2017-12-23 17:00:08 +08:00
parent e8ec10d5e7
commit 3b548038e1
1 changed files with 28 additions and 28 deletions

View File

@ -41,7 +41,7 @@ static char sccsid[] = "@(#)clnt_generic.c 1.4 87/08/11 (C) 1987 SMI";
* returns client handle. Default options are set, which the user can * returns client handle. Default options are set, which the user can
* change using the rpc equivalent of ioctl()'s. * change using the rpc equivalent of ioctl()'s.
*/ */
CLIENT *clnt_create (const char *hostname, const unsigned long prog, CLIENT *clnt_create(const char *hostname, const unsigned long prog,
const unsigned long vers, const char *proto) const unsigned long vers, const char *proto)
{ {
int sock; int sock;
@ -70,7 +70,7 @@ CLIENT *clnt_create (const char *hostname, const unsigned long prog,
client = clntudp_create(&server, prog, vers, tv, &sock); client = clntudp_create(&server, prog, vers, tv, &sock);
if (client == NULL) return NULL; if (client == NULL) return NULL;
tv.tv_sec = 1; tv.tv_sec = 1;
clnt_control(client, CLSET_TIMEOUT, (char*)&tv); clnt_control(client, CLSET_TIMEOUT, (char *)&tv);
} }
else else
{ {