Commit 877f1dd5 authored by Rusty Russell's avatar Rusty Russell

nfs: Remove _U_, use ccan/compiler and UNUSED

Also, add Author and License lines to _info (ccanlint complained).
Now ccanlint can build it as a module.
parent 42f0d95f
CC=gcc CC=gcc
CFLAGS=-g -O0 -Wall -W -I../.. "-D_U_=__attribute__((unused))" CFLAGS=-g -O0 -Wall -W -I../..
LIBS= LIBS=
LIBNFS_OBJ = libnfs-raw-mount.o libnfs-raw-portmap.o libnfs-raw-nfs.o libnfs-raw-nfsacl.o mount.o nfs.o nfsacl.o portmap.o pdu.o init.o socket.o libnfs.o libnfs-sync.o LIBNFS_OBJ = libnfs-raw-mount.o libnfs-raw-portmap.o libnfs-raw-nfs.o libnfs-raw-nfsacl.o mount.o nfs.o nfsacl.o portmap.o pdu.o init.o socket.o libnfs.o libnfs-sync.o
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
* Note: various files are generated from the XDR descriptions in the rpc/ * Note: various files are generated from the XDR descriptions in the rpc/
* directory using rpcgen. * directory using rpcgen.
* *
* Author: Ronnie Sahlberg <ronniesahlberg@gmail.com>
* License: GPL
*
* Example: * Example:
* #include <ccan/nfs/nfs.h> * #include <ccan/nfs/nfs.h>
* #include <err.h> * #include <err.h>
......
This diff is collapsed.
This diff is collapsed.
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <strings.h> #include <strings.h>
#include <rpc/xdr.h> #include <rpc/xdr.h>
#include <rpc/rpc_msg.h> #include <rpc/rpc_msg.h>
#include <ccan/compiler/compiler.h>
#include "dlinklist.h" #include "dlinklist.h"
#include "nfs.h" #include "nfs.h"
#include "libnfs-raw.h" #include "libnfs-raw.h"
...@@ -69,7 +70,7 @@ struct rpc_pdu *rpc_allocate_pdu(struct rpc_context *rpc, int program, int versi ...@@ -69,7 +70,7 @@ struct rpc_pdu *rpc_allocate_pdu(struct rpc_context *rpc, int program, int versi
return pdu; return pdu;
} }
void rpc_free_pdu(struct rpc_context *rpc _U_, struct rpc_pdu *pdu) void rpc_free_pdu(struct rpc_context *rpc UNUSED, struct rpc_pdu *pdu)
{ {
if (pdu->outdata.data != NULL) { if (pdu->outdata.data != NULL) {
free(pdu->outdata.data); free(pdu->outdata.data);
......
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