Commit 903a3eca authored by Rusty Russell's avatar Rusty Russell

nfs: remove trailing whitespace

ccanlint complained about it; it's trivial but fixing it adds one point to 
our score.
parent 91e70cda
/*
/*
Unix SMB/CIFS implementation.
some simple double linked list macros
......
/*
/*
Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
This program is free software; you can redistribute it and/or modify
......
#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
......
#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
*/
/*
......
/*
/*
Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
This program is free software; you can redistribute it and/or modify
......
/*
/*
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;
......
/*
/*
Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
This program is free software; you can redistribute it and/or modify
......
/*
/*
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");
......
#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
......
/*
/*
Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
This program is free software; you can redistribute it and/or modify
......
/*
/*
Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
This program is free software; you can redistribute it and/or modify
......
/*
/*
Copyright (C) by Ronnie Sahlberg <ronniesahlberg@gmail.com> 2010
This program is free software; you can redistribute it and/or modify
......
/*
/*
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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment