diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2019-09-13 21:27:44 +0300 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2019-10-17 06:34:27 +0000 |
commit | f737a745b54c2dffe5e3e3203cea1eecf1c7ecf1 (patch) | |
tree | 643365efa2c9544183c38077f915c6f95b7075ab /rpc/rpc-lib/src/rpcsvc-common.h | |
parent | 739940667f4d7f32bd676ba1bea6b1f13426ae03 (diff) |
rpc: align structs
squash tens of warnings on padding of structs in afr structures.
The warnings were found by manually added '-Wpadded' to the GCC
command line.
Also made relevant structs and definitions static, where it
was applicable.
Change-Id: Ib71a7e9c6179378f072d796d11172d086c343e53
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'rpc/rpc-lib/src/rpcsvc-common.h')
-rw-r--r-- | rpc/rpc-lib/src/rpcsvc-common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc-common.h b/rpc/rpc-lib/src/rpcsvc-common.h index 734601eef0b..6c4ec49a6ef 100644 --- a/rpc/rpc-lib/src/rpcsvc-common.h +++ b/rpc/rpc-lib/src/rpcsvc-common.h @@ -39,8 +39,6 @@ typedef struct rpcsvc_state { pthread_rwlock_t rpclock; - unsigned int memfactor; - /* List of the authentication schemes available. */ struct list_head authschemes; @@ -61,6 +59,8 @@ typedef struct rpcsvc_state { struct list_head notify; int notify_count; + unsigned int memfactor; + xlator_t *xl; /* xlator */ void *mydata; rpcsvc_notify_t notifyfn; |