]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
nfs-utils: whitespace clean ups in support/nfs/rpcmisc.c
authorChuck Lever <chuck.lever@oracle.com>
Fri, 26 Sep 2008 20:12:49 +0000 (16:12 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 26 Sep 2008 20:12:49 +0000 (16:12 -0400)
Clean up: fix a few spurious white space issues in support/nfs/rpcmisc.c.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/nfs/rpcmisc.c

index eb5629aec07af9297f95385d2f26d1e8a38fe2d5..aa23601d465e6a969bbec29cf48bbcf83c9e079e 100644 (file)
@@ -1,9 +1,8 @@
 /*
 /*
- * support/nfs/rpcmisc.c
+ * Miscellaneous functions for RPC service startup and shutdown.
  *
  *
- * Miscellaneous functions for RPC startup and shutdown.
  * This code is partially snarfed from rpcgen -s tcp -s udp,
  * This code is partially snarfed from rpcgen -s tcp -s udp,
- * partly written by Mark Shand, Donald Becker, and Rick 
+ * partly written by Mark Shand, Donald Becker, and Rick
  * Sladkey. It was tweaked slightly by Olaf Kirch to be
  * usable by both unfsd and mountd.
  *
  * Sladkey. It was tweaked slightly by Olaf Kirch to be
  * usable by both unfsd and mountd.
  *
@@ -60,7 +59,7 @@ rpc_init(char *name, int prog, int vers,
        sock = 0;
        if (getsockname(0, (struct sockaddr *) &saddr, &asize) == 0
            && saddr.sin_family == AF_INET) {
        sock = 0;
        if (getsockname(0, (struct sockaddr *) &saddr, &asize) == 0
            && saddr.sin_family == AF_INET) {
-               socklen_t ssize = sizeof (int);
+               socklen_t ssize = sizeof(int);
                int fdtype = 0;
                if (getsockopt(0, SOL_SOCKET, SO_TYPE,
                                (char *)&fdtype, &ssize) == -1)
                int fdtype = 0;
                if (getsockopt(0, SOL_SOCKET, SO_TYPE,
                                (char *)&fdtype, &ssize) == -1)
@@ -80,7 +79,7 @@ rpc_init(char *name, int prog, int vers,
 
        if ((_rpcfdtype == 0) || (_rpcfdtype == SOCK_DGRAM)) {
                static SVCXPRT *last_transp = NULL;
 
        if ((_rpcfdtype == 0) || (_rpcfdtype == SOCK_DGRAM)) {
                static SVCXPRT *last_transp = NULL;
+
                if (_rpcpmstart == 0) {
                        if (last_transp
                            && (!defport || defport == last_transp->xp_port)) {
                if (_rpcpmstart == 0) {
                        if (last_transp
                            && (!defport || defport == last_transp->xp_port)) {
@@ -135,8 +134,8 @@ rpc_init(char *name, int prog, int vers,
        }
 
        if (_rpcpmstart) {
        }
 
        if (_rpcpmstart) {
-               signal (SIGALRM, closedown);
-               alarm (_RPCSVC_CLOSEDOWN);
+               signal(SIGALRM, closedown);
+               alarm(_RPCSVC_CLOSEDOWN);
        }
 }
 
        }
 }