Remove unused variables from raw (generated) files

libnfs-4.0.0-vitalif
MilhouseVH 2015-03-12 05:15:55 +00:00
parent 617cfba5b5
commit 7b853063c9
6 changed files with 12 additions and 746 deletions

View File

@ -6,7 +6,7 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
@ -23,7 +23,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
*/
@ -38,9 +38,6 @@ either expressed or implied, of the FreeBSD Project.
uint32_t
zdr_fhandle3 (ZDR *zdrs, fhandle3 *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_bytes (zdrs, (char **)&objp->fhandle3_val, (u_int *) &objp->fhandle3_len, FHSIZE3))
return FALSE;
return TRUE;
@ -49,9 +46,6 @@ zdr_fhandle3 (ZDR *zdrs, fhandle3 *objp)
uint32_t
zdr_dirpath (ZDR *zdrs, dirpath *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, objp, MNTPATHLEN))
return FALSE;
return TRUE;
@ -60,9 +54,6 @@ zdr_dirpath (ZDR *zdrs, dirpath *objp)
uint32_t
zdr_name (ZDR *zdrs, name *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, objp, MNTNAMLEN))
return FALSE;
return TRUE;
@ -71,9 +62,6 @@ zdr_name (ZDR *zdrs, name *objp)
uint32_t
zdr_mountstat3 (ZDR *zdrs, mountstat3 *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_enum (zdrs, (enum_t *) objp))
return FALSE;
return TRUE;
@ -82,9 +70,6 @@ zdr_mountstat3 (ZDR *zdrs, mountstat3 *objp)
uint32_t
zdr_mountlist (ZDR *zdrs, mountlist *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_pointer (zdrs, (char **)objp, sizeof (struct mountbody), (zdrproc_t) zdr_mountbody))
return FALSE;
return TRUE;
@ -93,9 +78,6 @@ zdr_mountlist (ZDR *zdrs, mountlist *objp)
uint32_t
zdr_mountbody (ZDR *zdrs, mountbody *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_name (zdrs, &objp->ml_hostname))
return FALSE;
if (!zdr_dirpath (zdrs, &objp->ml_directory))
@ -108,9 +90,6 @@ zdr_mountbody (ZDR *zdrs, mountbody *objp)
uint32_t
zdr_groups (ZDR *zdrs, groups *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_pointer (zdrs, (char **)objp, sizeof (struct groupnode), (zdrproc_t) zdr_groupnode))
return FALSE;
return TRUE;
@ -119,9 +98,6 @@ zdr_groups (ZDR *zdrs, groups *objp)
uint32_t
zdr_groupnode (ZDR *zdrs, groupnode *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_name (zdrs, &objp->gr_name))
return FALSE;
if (!zdr_groups (zdrs, &objp->gr_next))
@ -132,9 +108,6 @@ zdr_groupnode (ZDR *zdrs, groupnode *objp)
uint32_t
zdr_exports (ZDR *zdrs, exports *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_pointer (zdrs, (char **)objp, sizeof (struct exportnode), (zdrproc_t) zdr_exportnode))
return FALSE;
return TRUE;
@ -143,9 +116,6 @@ zdr_exports (ZDR *zdrs, exports *objp)
uint32_t
zdr_exportnode (ZDR *zdrs, exportnode *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_dirpath (zdrs, &objp->ex_dir))
return FALSE;
if (!zdr_groups (zdrs, &objp->ex_groups))
@ -158,9 +128,6 @@ zdr_exportnode (ZDR *zdrs, exportnode *objp)
uint32_t
zdr_mountres3_ok (ZDR *zdrs, mountres3_ok *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_fhandle3 (zdrs, &objp->fhandle))
return FALSE;
if (!zdr_array (zdrs, (char **)&objp->auth_flavors.auth_flavors_val, (u_int *) &objp->auth_flavors.auth_flavors_len, ~0,
@ -172,9 +139,6 @@ zdr_mountres3_ok (ZDR *zdrs, mountres3_ok *objp)
uint32_t
zdr_mountres3 (ZDR *zdrs, mountres3 *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_mountstat3 (zdrs, &objp->fhs_status))
return FALSE;
switch (objp->fhs_status) {
@ -191,9 +155,6 @@ zdr_mountres3 (ZDR *zdrs, mountres3 *objp)
uint32_t
zdr_mountstat1 (ZDR *zdrs, mountstat1 *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_enum (zdrs, (enum_t *) objp))
return FALSE;
return TRUE;
@ -202,9 +163,6 @@ zdr_mountstat1 (ZDR *zdrs, mountstat1 *objp)
uint32_t
zdr_fhandle1 (ZDR *zdrs, fhandle1 objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_opaque (zdrs, objp, FHSIZE))
return FALSE;
return TRUE;
@ -213,9 +171,6 @@ zdr_fhandle1 (ZDR *zdrs, fhandle1 objp)
uint32_t
zdr_mountres1_ok (ZDR *zdrs, mountres1_ok *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_fhandle1 (zdrs, objp->fhandle))
return FALSE;
return TRUE;
@ -224,9 +179,6 @@ zdr_mountres1_ok (ZDR *zdrs, mountres1_ok *objp)
uint32_t
zdr_mountres1 (ZDR *zdrs, mountres1 *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_mountstat1 (zdrs, &objp->fhs_status))
return FALSE;
switch (objp->fhs_status) {

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
@ -23,7 +23,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
*/
@ -38,9 +38,6 @@ either expressed or implied, of the FreeBSD Project.
uint32_t
zdr_nlm_fh4 (ZDR *zdrs, nlm_fh4 *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_bytes (zdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0))
return FALSE;
return TRUE;
@ -49,9 +46,6 @@ zdr_nlm_fh4 (ZDR *zdrs, nlm_fh4 *objp)
uint32_t
zdr_nlm4_oh (ZDR *zdrs, nlm4_oh *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, objp, ~0))
return FALSE;
return TRUE;
@ -60,9 +54,6 @@ zdr_nlm4_oh (ZDR *zdrs, nlm4_oh *objp)
uint32_t
zdr_nlm_cookie (ZDR *zdrs, nlm_cookie *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_bytes (zdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0))
return FALSE;
return TRUE;
@ -71,9 +62,6 @@ zdr_nlm_cookie (ZDR *zdrs, nlm_cookie *objp)
uint32_t
zdr_nlmstat4 (ZDR *zdrs, nlmstat4 *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_enum (zdrs, (enum_t *) objp))
return FALSE;
return TRUE;
@ -82,9 +70,6 @@ zdr_nlmstat4 (ZDR *zdrs, nlmstat4 *objp)
uint32_t
zdr_nlm4_holder (ZDR *zdrs, nlm4_holder *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_bool (zdrs, &objp->exclusive))
return FALSE;
if (!zdr_u_int (zdrs, &objp->svid))
@ -101,9 +86,6 @@ zdr_nlm4_holder (ZDR *zdrs, nlm4_holder *objp)
uint32_t
zdr_nlm4_lock (ZDR *zdrs, nlm4_lock *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, &objp->caller_name, NLM_MAXNAME))
return FALSE;
if (!zdr_nlm_fh4 (zdrs, &objp->fh))
@ -122,9 +104,6 @@ zdr_nlm4_lock (ZDR *zdrs, nlm4_lock *objp)
uint32_t
zdr_nlm4_share (ZDR *zdrs, nlm4_share *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, &objp->caller_name, NLM_MAXNAME))
return FALSE;
if (!zdr_nlm_fh4 (zdrs, &objp->fh))
@ -141,9 +120,6 @@ zdr_nlm4_share (ZDR *zdrs, nlm4_share *objp)
uint32_t
zdr_nlm4_testres_denied (ZDR *zdrs, nlm4_testres_denied *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm4_holder (zdrs, &objp->holder))
return FALSE;
return TRUE;
@ -152,9 +128,6 @@ zdr_nlm4_testres_denied (ZDR *zdrs, nlm4_testres_denied *objp)
uint32_t
zdr_nlm4_testreply (ZDR *zdrs, nlm4_testreply *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlmstat4 (zdrs, &objp->status))
return FALSE;
switch (objp->status) {
@ -171,9 +144,6 @@ zdr_nlm4_testreply (ZDR *zdrs, nlm4_testreply *objp)
uint32_t
zdr_NLM4_TESTres (ZDR *zdrs, NLM4_TESTres *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm_cookie (zdrs, &objp->cookie))
return FALSE;
if (!zdr_nlm4_testreply (zdrs, &objp->reply))
@ -184,9 +154,6 @@ zdr_NLM4_TESTres (ZDR *zdrs, NLM4_TESTres *objp)
uint32_t
zdr_NLM4_TESTargs (ZDR *zdrs, NLM4_TESTargs *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm_cookie (zdrs, &objp->cookie))
return FALSE;
if (!zdr_bool (zdrs, &objp->exclusive))
@ -199,9 +166,6 @@ zdr_NLM4_TESTargs (ZDR *zdrs, NLM4_TESTargs *objp)
uint32_t
zdr_NLM4_CANCres (ZDR *zdrs, NLM4_CANCres *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm_cookie (zdrs, &objp->cookie))
return FALSE;
if (!zdr_nlmstat4 (zdrs, &objp->status))
@ -212,9 +176,6 @@ zdr_NLM4_CANCres (ZDR *zdrs, NLM4_CANCres *objp)
uint32_t
zdr_NLM4_CANCargs (ZDR *zdrs, NLM4_CANCargs *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm_cookie (zdrs, &objp->cookie))
return FALSE;
if (!zdr_bool (zdrs, &objp->block))
@ -229,9 +190,6 @@ zdr_NLM4_CANCargs (ZDR *zdrs, NLM4_CANCargs *objp)
uint32_t
zdr_NLM4_UNLOCKres (ZDR *zdrs, NLM4_UNLOCKres *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm_cookie (zdrs, &objp->cookie))
return FALSE;
if (!zdr_nlmstat4 (zdrs, &objp->status))
@ -242,9 +200,6 @@ zdr_NLM4_UNLOCKres (ZDR *zdrs, NLM4_UNLOCKres *objp)
uint32_t
zdr_NLM4_UNLOCKargs (ZDR *zdrs, NLM4_UNLOCKargs *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm_cookie (zdrs, &objp->cookie))
return FALSE;
if (!zdr_nlm4_lock (zdrs, &objp->lock))
@ -255,9 +210,6 @@ zdr_NLM4_UNLOCKargs (ZDR *zdrs, NLM4_UNLOCKargs *objp)
uint32_t
zdr_NLM4_LOCKres (ZDR *zdrs, NLM4_LOCKres *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm_cookie (zdrs, &objp->cookie))
return FALSE;
if (!zdr_nlmstat4 (zdrs, &objp->status))
@ -268,9 +220,6 @@ zdr_NLM4_LOCKres (ZDR *zdrs, NLM4_LOCKres *objp)
uint32_t
zdr_NLM4_LOCKargs (ZDR *zdrs, NLM4_LOCKargs *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm_cookie (zdrs, &objp->cookie))
return FALSE;
if (!zdr_bool (zdrs, &objp->block))
@ -289,9 +238,6 @@ zdr_NLM4_LOCKargs (ZDR *zdrs, NLM4_LOCKargs *objp)
uint32_t
zdr_NLM4_GRANTEDargs (ZDR *zdrs, NLM4_GRANTEDargs *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm_cookie (zdrs, &objp->cookie))
return FALSE;
if (!zdr_bool (zdrs, &objp->exclusive))
@ -304,9 +250,6 @@ zdr_NLM4_GRANTEDargs (ZDR *zdrs, NLM4_GRANTEDargs *objp)
uint32_t
zdr_NLM4_GRANTEDres (ZDR *zdrs, NLM4_GRANTEDres *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nlm_cookie (zdrs, &objp->cookie))
return FALSE;
if (!zdr_nlmstat4 (zdrs, &objp->status))

View File

@ -6,7 +6,7 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
@ -23,7 +23,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
*/
@ -38,9 +38,6 @@ either expressed or implied, of the FreeBSD Project.
uint32_t
zdr_nsmstat1 (ZDR *zdrs, nsmstat1 *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_enum (zdrs, (enum_t *) objp))
return FALSE;
return TRUE;
@ -49,9 +46,6 @@ zdr_nsmstat1 (ZDR *zdrs, nsmstat1 *objp)
uint32_t
zdr_nsm_my_id (ZDR *zdrs, nsm_my_id *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, &objp->my_name, NSM_MAXSTRLEN))
return FALSE;
if (!zdr_int (zdrs, &objp->my_prog))
@ -66,9 +60,6 @@ zdr_nsm_my_id (ZDR *zdrs, nsm_my_id *objp)
uint32_t
zdr_nsm_mon_id (ZDR *zdrs, nsm_mon_id *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, &objp->mon_name, NSM_MAXSTRLEN))
return FALSE;
if (!zdr_nsm_my_id (zdrs, &objp->my_id))
@ -79,9 +70,6 @@ zdr_nsm_mon_id (ZDR *zdrs, nsm_mon_id *objp)
uint32_t
zdr_NSM1_STATres (ZDR *zdrs, NSM1_STATres *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nsmstat1 (zdrs, &objp->res))
return FALSE;
if (!zdr_int (zdrs, &objp->state))
@ -92,9 +80,6 @@ zdr_NSM1_STATres (ZDR *zdrs, NSM1_STATres *objp)
uint32_t
zdr_NSM1_STATargs (ZDR *zdrs, NSM1_STATargs *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, &objp->mon_name, NSM_MAXSTRLEN))
return FALSE;
return TRUE;
@ -103,9 +88,6 @@ zdr_NSM1_STATargs (ZDR *zdrs, NSM1_STATargs *objp)
uint32_t
zdr_NSM1_MONres (ZDR *zdrs, NSM1_MONres *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nsmstat1 (zdrs, &objp->res))
return FALSE;
if (!zdr_int (zdrs, &objp->state))
@ -116,10 +98,6 @@ zdr_NSM1_MONres (ZDR *zdrs, NSM1_MONres *objp)
uint32_t
zdr_NSM1_MONargs (ZDR *zdrs, NSM1_MONargs *objp)
{
register int32_t *buf;
buf = NULL;
int i;
if (!zdr_nsm_mon_id (zdrs, &objp->mon_id))
return FALSE;
if (!zdr_opaque (zdrs, objp->priv, 16))
@ -130,9 +108,6 @@ zdr_NSM1_MONargs (ZDR *zdrs, NSM1_MONargs *objp)
uint32_t
zdr_NSM1_UNMONres (ZDR *zdrs, NSM1_UNMONres *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_int (zdrs, &objp->state))
return FALSE;
return TRUE;
@ -141,9 +116,6 @@ zdr_NSM1_UNMONres (ZDR *zdrs, NSM1_UNMONres *objp)
uint32_t
zdr_NSM1_UNMONargs (ZDR *zdrs, NSM1_UNMONargs *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nsm_mon_id (zdrs, &objp->mon_id))
return FALSE;
return TRUE;
@ -152,9 +124,6 @@ zdr_NSM1_UNMONargs (ZDR *zdrs, NSM1_UNMONargs *objp)
uint32_t
zdr_NSM1_UNMONALLres (ZDR *zdrs, NSM1_UNMONALLres *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_int (zdrs, &objp->state))
return FALSE;
return TRUE;
@ -163,9 +132,6 @@ zdr_NSM1_UNMONALLres (ZDR *zdrs, NSM1_UNMONALLres *objp)
uint32_t
zdr_NSM1_UNMONALLargs (ZDR *zdrs, NSM1_UNMONALLargs *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_nsm_my_id (zdrs, &objp->my_id))
return FALSE;
return TRUE;
@ -174,9 +140,6 @@ zdr_NSM1_UNMONALLargs (ZDR *zdrs, NSM1_UNMONALLargs *objp)
uint32_t
zdr_NSM1_NOTIFYargs (ZDR *zdrs, NSM1_NOTIFYargs *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, &objp->mon_name, NSM_MAXSTRLEN))
return FALSE;
if (!zdr_int (zdrs, &objp->state))

View File

@ -6,7 +6,7 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
@ -23,7 +23,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
*/
@ -41,7 +41,6 @@ zdr_pmap2_mapping (ZDR *zdrs, pmap2_mapping *objp)
register int32_t *buf;
buf = NULL;
if (zdrs->x_op == ZDR_ENCODE) {
buf = ZDR_INLINE (zdrs, 4 * BYTES_PER_ZDR_UNIT);
if (buf == NULL) {
@ -97,7 +96,6 @@ zdr_pmap2_call_args (ZDR *zdrs, pmap2_call_args *objp)
register int32_t *buf;
buf = NULL;
if (zdrs->x_op == ZDR_ENCODE) {
buf = ZDR_INLINE (zdrs, 3 * BYTES_PER_ZDR_UNIT);
if (buf == NULL) {
@ -150,9 +148,6 @@ zdr_pmap2_call_args (ZDR *zdrs, pmap2_call_args *objp)
uint32_t
zdr_pmap2_call_result (ZDR *zdrs, pmap2_call_result *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_u_int (zdrs, &objp->port))
return FALSE;
if (!zdr_bytes (zdrs, (char **)&objp->res.res_val, (u_int *) &objp->res.res_len, ~0))
@ -163,9 +158,6 @@ zdr_pmap2_call_result (ZDR *zdrs, pmap2_call_result *objp)
uint32_t
zdr_pmap2_mapping_list (ZDR *zdrs, pmap2_mapping_list *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_pmap2_mapping (zdrs, &objp->map))
return FALSE;
if (!zdr_pointer (zdrs, (char **)&objp->next, sizeof (pmap2_mapping_list), (zdrproc_t) zdr_pmap2_mapping_list))
@ -176,9 +168,6 @@ zdr_pmap2_mapping_list (ZDR *zdrs, pmap2_mapping_list *objp)
uint32_t
zdr_pmap2_dump_result (ZDR *zdrs, pmap2_dump_result *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_pointer (zdrs, (char **)&objp->list, sizeof (pmap2_mapping_list), (zdrproc_t) zdr_pmap2_mapping_list))
return FALSE;
return TRUE;
@ -187,9 +176,6 @@ zdr_pmap2_dump_result (ZDR *zdrs, pmap2_dump_result *objp)
uint32_t
zdr_pmap3_string_result (ZDR *zdrs, pmap3_string_result *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, &objp->addr, ~0))
return FALSE;
return TRUE;
@ -198,9 +184,6 @@ zdr_pmap3_string_result (ZDR *zdrs, pmap3_string_result *objp)
uint32_t
zdr_pmap3_mapping (ZDR *zdrs, pmap3_mapping *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_u_int (zdrs, &objp->prog))
return FALSE;
if (!zdr_u_int (zdrs, &objp->vers))
@ -217,9 +200,6 @@ zdr_pmap3_mapping (ZDR *zdrs, pmap3_mapping *objp)
uint32_t
zdr_pmap3_mapping_list (ZDR *zdrs, pmap3_mapping_list *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_pmap3_mapping (zdrs, &objp->map))
return FALSE;
if (!zdr_pointer (zdrs, (char **)&objp->next, sizeof (pmap3_mapping_list), (zdrproc_t) zdr_pmap3_mapping_list))
@ -230,9 +210,6 @@ zdr_pmap3_mapping_list (ZDR *zdrs, pmap3_mapping_list *objp)
uint32_t
zdr_pmap3_dump_result (ZDR *zdrs, pmap3_dump_result *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_pointer (zdrs, (char **)&objp->list, sizeof (pmap3_mapping_list), (zdrproc_t) zdr_pmap3_mapping_list))
return FALSE;
return TRUE;
@ -244,7 +221,6 @@ zdr_pmap3_call_args (ZDR *zdrs, pmap3_call_args *objp)
register int32_t *buf;
buf = NULL;
if (zdrs->x_op == ZDR_ENCODE) {
buf = ZDR_INLINE (zdrs, 3 * BYTES_PER_ZDR_UNIT);
if (buf == NULL) {
@ -297,9 +273,6 @@ zdr_pmap3_call_args (ZDR *zdrs, pmap3_call_args *objp)
uint32_t
zdr_pmap3_call_result (ZDR *zdrs, pmap3_call_result *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_u_int (zdrs, &objp->port))
return FALSE;
if (!zdr_bytes (zdrs, (char **)&objp->res.res_val, (u_int *) &objp->res.res_len, ~0))
@ -310,9 +283,6 @@ zdr_pmap3_call_result (ZDR *zdrs, pmap3_call_result *objp)
uint32_t
zdr_pmap3_netbuf (ZDR *zdrs, pmap3_netbuf *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_u_int (zdrs, &objp->maxlen))
return FALSE;
if (!zdr_bytes (zdrs, (char **)&objp->buf.buf_val, (u_int *) &objp->buf.buf_len, ~0))

View File

@ -6,7 +6,7 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
@ -23,7 +23,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
*/
@ -38,9 +38,6 @@ either expressed or implied, of the FreeBSD Project.
uint32_t
zdr_rquotastat (ZDR *zdrs, rquotastat *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_enum (zdrs, (enum_t *) objp))
return FALSE;
return TRUE;
@ -49,9 +46,6 @@ zdr_rquotastat (ZDR *zdrs, rquotastat *objp)
uint32_t
zdr_exportpath (ZDR *zdrs, exportpath *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_string (zdrs, objp, RQUOTAPATHLEN))
return FALSE;
return TRUE;
@ -60,9 +54,6 @@ zdr_exportpath (ZDR *zdrs, exportpath *objp)
uint32_t
zdr_GETQUOTA1args (ZDR *zdrs, GETQUOTA1args *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_exportpath (zdrs, &objp->export))
return FALSE;
if (!zdr_int (zdrs, &objp->uid))
@ -73,9 +64,6 @@ zdr_GETQUOTA1args (ZDR *zdrs, GETQUOTA1args *objp)
uint32_t
zdr_quotatype (ZDR *zdrs, quotatype *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_enum (zdrs, (enum_t *) objp))
return FALSE;
return TRUE;
@ -84,9 +72,6 @@ zdr_quotatype (ZDR *zdrs, quotatype *objp)
uint32_t
zdr_GETQUOTA2args (ZDR *zdrs, GETQUOTA2args *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_exportpath (zdrs, &objp->export))
return FALSE;
if (!zdr_quotatype (zdrs, &objp->type))
@ -102,7 +87,6 @@ zdr_GETQUOTA1res_ok (ZDR *zdrs, GETQUOTA1res_ok *objp)
register int32_t *buf;
buf = NULL;
if (zdrs->x_op == ZDR_ENCODE) {
buf = ZDR_INLINE (zdrs, 10 * BYTES_PER_ZDR_UNIT);
if (buf == NULL) {
@ -203,9 +187,6 @@ zdr_GETQUOTA1res_ok (ZDR *zdrs, GETQUOTA1res_ok *objp)
uint32_t
zdr_GETQUOTA1res (ZDR *zdrs, GETQUOTA1res *objp)
{
register int32_t *buf;
buf = NULL;
if (!zdr_rquotastat (zdrs, &objp->status))
return FALSE;
switch (objp->status) {