]> git.ozlabs.org Git - ccan/commitdiff
nfs: remove trailing whitespace
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Nov 2010 02:47:55 +0000 (13:17 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Nov 2010 02:47:55 +0000 (13:17 +1030)
ccanlint complained about it; it's trivial but fixing it adds one point to
our score.

13 files changed:
ccan/nfs/dlinklist.h
ccan/nfs/init.c
ccan/nfs/libnfs-private.h
ccan/nfs/libnfs-raw.h
ccan/nfs/libnfs-sync.c
ccan/nfs/libnfs.c
ccan/nfs/mount.c
ccan/nfs/nfs.c
ccan/nfs/nfs.h
ccan/nfs/nfsacl.c
ccan/nfs/pdu.c
ccan/nfs/portmap.c
ccan/nfs/socket.c

index 6d525f903644c61f9062b29e83dd60074190d905..acbb98637c83fab7805d875710b683bac61b4ebf 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    some simple double linked list macros
 
index 9bc3c7e8d18331cd7199500a6cb725a780b79ba8..888504fb821925bf210597cbc43fb3ebaf8d313c 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
index 7aeede84a12570d61dd3240ef3d6d9cc9aa87dcd..5946ae4c70bd1d4c01055dc23c91fa3a00f643bd 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef CCAN_NFS_LIBNFS_PRIVATE_H
 #define CCAN_NFS_LIBNFS_PRIVATE_H
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
index 076b13805e068236afa9b0b49f1c332af2aaecc7..e61d17ec6b6ecc1c5e4771762cc676d23997422e 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef CCAN_NFS_LIBNFS_RAW_H
 #define CCAN_NFS_LIBNFS_RAW_H
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
@@ -71,7 +71,7 @@ int rpc_disconnect(struct rpc_context *rpc, char *error);
 void rpc_set_error(struct rpc_context *rpc, char *error_string, ...);
 
 
-/* 
+/*
  * PORTMAP FUNCTIONS
  */
 
@@ -110,7 +110,7 @@ int rpc_pmap_getport_async(struct rpc_context *rpc, int program, int version, rp
 
 
 
-/* 
+/*
  * MOUNT FUNCTIONS
  */
 char *mountstat3_to_str(int stat);
@@ -215,7 +215,7 @@ int rpc_mount_export_async(struct rpc_context *rpc, rpc_cb cb, void *private_dat
 
 
 
-/* 
+/*
  * NFS FUNCTIONS
  */
 struct nfs_fh3;
@@ -540,7 +540,7 @@ int rpc_nfs_link_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *file,
 
 
 
-/* 
+/*
  * NFSACL FUNCTIONS
  */
 /*
index 79a44f482669958995149f2e4df6f3b726c75115..493209ca08dc655d7865a29bde62df29cff76f5d 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
index 8d4da9f5203e046032ae14adc62545959769146f..c86bbab7a113b5c1453df5330c90b3c60f7a81c8 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
@@ -365,7 +365,7 @@ static void nfs_mount_3_cb(struct rpc_context *rpc, int status, void *command_da
        struct nfs_context *nfs = data->nfs;
        uint32_t mount_port;
 
-       if (status == RPC_STATUS_ERROR) {       
+       if (status == RPC_STATUS_ERROR) {
                data->cb(-EFAULT, nfs, command_data, data->private_data);
                free_nfs_cb_data(data);
                return;
index 7c7ac7ec7b73e1c8da4ee4dacc1df20e1b03910b..b79b7f70735076262b4e29dc57a6a6a55baab2d4 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
index 736095c5161821502c3b8873b0120b34f3ea3f1b..684ce3500014e2919aff2e3692791f35676f4da4 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
@@ -129,8 +129,8 @@ int rpc_nfs_getattr_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh
                return -1;
        }
 
-       args.object.data.data_len = fh->data.data_len; 
-       args.object.data.data_val = fh->data.data_val; 
+       args.object.data.data_len = fh->data.data_len;
+       args.object.data.data_val = fh->data.data_val;
 
        if (xdr_GETATTR3args(&pdu->xdr, &args) == 0) {
                rpc_set_error(rpc, "XDR error: Failed to encode GETATTR3args");
@@ -158,8 +158,8 @@ int rpc_nfs_lookup_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
                return -1;
        }
 
-       args.what.dir.data.data_len = fh->data.data_len; 
-       args.what.dir.data.data_val = fh->data.data_val; 
+       args.what.dir.data.data_len = fh->data.data_len;
+       args.what.dir.data.data_val = fh->data.data_val;
        args.what.name              = name;
 
        if (xdr_LOOKUP3args(&pdu->xdr, &args) == 0) {
@@ -490,7 +490,7 @@ int rpc_nfs_readdir_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh
        args.dir.data.data_len = fh->data.data_len;
        args.dir.data.data_val = fh->data.data_val;
        args.cookie = cookie;
-       memcpy(&args.cookieverf, cookieverf, sizeof(cookieverf3)); 
+       memcpy(&args.cookieverf, cookieverf, sizeof(cookieverf3));
        args.count = count;
 
        if (xdr_READDIR3args(&pdu->xdr, &args) == 0) {
@@ -519,8 +519,8 @@ int rpc_nfs_fsstat_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
                return -1;
        }
 
-       args.fsroot.data.data_len = fh->data.data_len; 
-       args.fsroot.data.data_val = fh->data.data_val; 
+       args.fsroot.data.data_len = fh->data.data_len;
+       args.fsroot.data.data_val = fh->data.data_val;
 
        if (xdr_FSSTAT3args(&pdu->xdr, &args) == 0) {
                rpc_set_error(rpc, "XDR error: Failed to encode FSSTAT3args");
@@ -549,8 +549,8 @@ int rpc_nfs_readlink_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *f
                return -1;
        }
 
-       args.symlink.data.data_len = fh->data.data_len; 
-       args.symlink.data.data_val = fh->data.data_val; 
+       args.symlink.data.data_len = fh->data.data_len;
+       args.symlink.data.data_val = fh->data.data_val;
 
        if (xdr_READLINK3args(&pdu->xdr, &args) == 0) {
                rpc_set_error(rpc, "XDR error: Failed to encode READLINK3args");
index 7d45c13b94043b7d3d63ff02897cc0a582c7e72a..b08abbcc81aecbd9c0ea300902b8a61fb1164131 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef CCAN_NFS_H
 #define CCAN_NFS_H
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
index 71c72cd415a56b513ccd44a4eb2ee1b2931ab407..deaa31a335a1bbc7b4df8c3b378190cb05f45fec 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
index 4b604e0cde39415ea6be05040daadb0a51ae1e8c..e499d58b5bb38f34af7371b6b9f207949ae171fd 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
index 5753736e13964b9b1c38f495767e6c94b61c6dc6..09408aa68f82f7cac8b1f6fb913ad5492f322d23 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
index ccdd18df565eda924de92612fce4f9ef0c5a4d27..ea5ed9859507e4dde0453ac5cf4d1a12298b3b4d 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    This program is free software; you can redistribute it and/or modify
@@ -48,7 +48,7 @@ int rpc_which_events(struct rpc_context *rpc)
 
        if (rpc->is_connected == 0) {
                events |= POLLOUT;
-       }       
+       }
 
        if (rpc->outqueue) {
                events |= POLLOUT;
@@ -280,10 +280,10 @@ int rpc_connect_async(struct rpc_context *rpc, const char *server, int port, int
                rpc_set_error(rpc, "connect() to server failed");
                printf("%s\n", rpc->error_string);
                return -4;
-       }               
+       }
 
        return 0;
-}          
+}
 
 int rpc_disconnect(struct rpc_context *rpc, char *error)
 {