Browse Source

nfs: remove trailing whitespace

ccanlint complained about it; it's trivial but fixing it adds one point to 
our score.
Rusty Russell 15 years ago
parent
commit
903a3ecae8

+ 1 - 1
ccan/nfs/dlinklist.h

@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    Unix SMB/CIFS implementation.
    some simple double linked list macros
    some simple double linked list macros
 
 

+ 1 - 1
ccan/nfs/init.c

@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    This program is free software; you can redistribute it and/or modify

+ 1 - 1
ccan/nfs/libnfs-private.h

@@ -1,6 +1,6 @@
 #ifndef CCAN_NFS_LIBNFS_PRIVATE_H
 #ifndef CCAN_NFS_LIBNFS_PRIVATE_H
 #define CCAN_NFS_LIBNFS_PRIVATE_H
 #define CCAN_NFS_LIBNFS_PRIVATE_H
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    This program is free software; you can redistribute it and/or modify

+ 5 - 5
ccan/nfs/libnfs-raw.h

@@ -1,6 +1,6 @@
 #ifndef CCAN_NFS_LIBNFS_RAW_H
 #ifndef CCAN_NFS_LIBNFS_RAW_H
 #define CCAN_NFS_LIBNFS_RAW_H
 #define CCAN_NFS_LIBNFS_RAW_H
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    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, ...);
 void rpc_set_error(struct rpc_context *rpc, char *error_string, ...);
 
 
 
 
-/* 
+/*
  * PORTMAP FUNCTIONS
  * PORTMAP FUNCTIONS
  */
  */
 
 
@@ -110,7 +110,7 @@ int rpc_pmap_getport_async(struct rpc_context *rpc, int program, int version, rp
 
 
 
 
 
 
-/* 
+/*
  * MOUNT FUNCTIONS
  * MOUNT FUNCTIONS
  */
  */
 char *mountstat3_to_str(int stat);
 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
  * NFS FUNCTIONS
  */
  */
 struct nfs_fh3;
 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
  * NFSACL FUNCTIONS
  */
  */
 /*
 /*

+ 1 - 1
ccan/nfs/libnfs-sync.c

@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    This program is free software; you can redistribute it and/or modify

+ 2 - 2
ccan/nfs/libnfs.c

@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    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;
 	struct nfs_context *nfs = data->nfs;
 	uint32_t mount_port;
 	uint32_t mount_port;
 
 
-	if (status == RPC_STATUS_ERROR) {	
+	if (status == RPC_STATUS_ERROR) {
 		data->cb(-EFAULT, nfs, command_data, data->private_data);
 		data->cb(-EFAULT, nfs, command_data, data->private_data);
 		free_nfs_cb_data(data);
 		free_nfs_cb_data(data);
 		return;
 		return;

+ 1 - 1
ccan/nfs/mount.c

@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    This program is free software; you can redistribute it and/or modify

+ 10 - 10
ccan/nfs/nfs.c

@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    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;
 		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) {
 	if (xdr_GETATTR3args(&pdu->xdr, &args) == 0) {
 		rpc_set_error(rpc, "XDR error: Failed to encode GETATTR3args");
 		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;
 		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;
 	args.what.name              = name;
 
 
 	if (xdr_LOOKUP3args(&pdu->xdr, &args) == 0) {
 	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_len = fh->data.data_len;
 	args.dir.data.data_val = fh->data.data_val;
 	args.dir.data.data_val = fh->data.data_val;
 	args.cookie = cookie;
 	args.cookie = cookie;
-	memcpy(&args.cookieverf, cookieverf, sizeof(cookieverf3)); 
+	memcpy(&args.cookieverf, cookieverf, sizeof(cookieverf3));
 	args.count = count;
 	args.count = count;
 
 
 	if (xdr_READDIR3args(&pdu->xdr, &args) == 0) {
 	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;
 		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) {
 	if (xdr_FSSTAT3args(&pdu->xdr, &args) == 0) {
 		rpc_set_error(rpc, "XDR error: Failed to encode FSSTAT3args");
 		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;
 		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) {
 	if (xdr_READLINK3args(&pdu->xdr, &args) == 0) {
 		rpc_set_error(rpc, "XDR error: Failed to encode READLINK3args");
 		rpc_set_error(rpc, "XDR error: Failed to encode READLINK3args");

+ 1 - 1
ccan/nfs/nfs.h

@@ -1,6 +1,6 @@
 #ifndef CCAN_NFS_H
 #ifndef CCAN_NFS_H
 #define CCAN_NFS_H
 #define CCAN_NFS_H
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    This program is free software; you can redistribute it and/or modify

+ 1 - 1
ccan/nfs/nfsacl.c

@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    This program is free software; you can redistribute it and/or modify

+ 1 - 1
ccan/nfs/pdu.c

@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    This program is free software; you can redistribute it and/or modify

+ 1 - 1
ccan/nfs/portmap.c

@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    This program is free software; you can redistribute it and/or modify

+ 4 - 4
ccan/nfs/socket.c

@@ -1,4 +1,4 @@
-/* 
+/*
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
    
    
    This program is free software; you can redistribute it and/or modify
    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) {
 	if (rpc->is_connected == 0) {
 		events |= POLLOUT;
 		events |= POLLOUT;
-	}	
+	}
 
 
 	if (rpc->outqueue) {
 	if (rpc->outqueue) {
 		events |= POLLOUT;
 		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");
 		rpc_set_error(rpc, "connect() to server failed");
 		printf("%s\n", rpc->error_string);
 		printf("%s\n", rpc->error_string);
 		return -4;
 		return -4;
-	}		
+	}
 
 
 	return 0;
 	return 0;
-}	    
+}
 
 
 int rpc_disconnect(struct rpc_context *rpc, char *error)
 int rpc_disconnect(struct rpc_context *rpc, char *error)
 {
 {