diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:35 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 23:52:43 +0900 |
commit | 2afc8bbbe4f529c5847cfbe1757e55c47e4656fe (patch) | |
tree | 76a398670f2197f0682ccad3beff2875555af078 /tdeioslave | |
parent | 25a1c781481d9f53476251d1d2059643cf3ac67a (diff) | |
download | tdebase-2afc8bbbe4f529c5847cfbe1757e55c47e4656fe.tar.gz tdebase-2afc8bbbe4f529c5847cfbe1757e55c47e4656fe.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8250c8e42310cb39ceb6ae425bc8546208733e99)
Diffstat (limited to 'tdeioslave')
-rw-r--r-- | tdeioslave/nfs/mount_xdr.c | 26 | ||||
-rw-r--r-- | tdeioslave/nfs/nfs_prot_xdr.c | 58 |
2 files changed, 42 insertions, 42 deletions
diff --git a/tdeioslave/nfs/mount_xdr.c b/tdeioslave/nfs/mount_xdr.c index 38a43ca28..2eb0bf419 100644 --- a/tdeioslave/nfs/mount_xdr.c +++ b/tdeioslave/nfs/mount_xdr.c @@ -47,7 +47,7 @@ bool_t xdr_fhandle(XDR *xdrs, fhandle objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_opaque(xdrs, objp, FHSIZE)) { return (FALSE); @@ -59,7 +59,7 @@ bool_t xdr_fhstatus(XDR *xdrs, fhstatus *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_u_int(xdrs, &objp->fhs_status)) { return (FALSE); @@ -80,7 +80,7 @@ bool_t xdr_dirpath(XDR *xdrs, dirpath *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_string(xdrs, objp, MNTPATHLEN)) { return (FALSE); @@ -92,7 +92,7 @@ bool_t xdr_name(XDR *xdrs, name *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_string(xdrs, objp, MNTNAMLEN)) { return (FALSE); @@ -104,7 +104,7 @@ bool_t xdr_mountlist(XDR *xdrs, mountlist *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_pointer(xdrs, (char **)objp, sizeof(struct mountbody), (xdrproc_t)xdr_mountbody)) { return (FALSE); @@ -116,7 +116,7 @@ bool_t xdr_mountbody(XDR *xdrs, mountbody *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_name(xdrs, &objp->ml_hostname)) { return (FALSE); @@ -134,7 +134,7 @@ bool_t xdr_groups(XDR *xdrs, groups *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_pointer(xdrs, (char **)objp, sizeof(struct groupnode), (xdrproc_t)xdr_groupnode)) { return (FALSE); @@ -146,7 +146,7 @@ bool_t xdr_groupnode(XDR *xdrs, groupnode *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_name(xdrs, &objp->gr_name)) { return (FALSE); @@ -161,7 +161,7 @@ bool_t xdr_exports(XDR *xdrs, exports *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_pointer(xdrs, (char **)objp, sizeof(struct exportnode), (xdrproc_t)xdr_exportnode)) { return (FALSE); @@ -173,7 +173,7 @@ bool_t xdr_exportnode(XDR *xdrs, exportnode *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_dirpath(xdrs, &objp->ex_dir)) { return (FALSE); @@ -191,7 +191,7 @@ bool_t xdr_ppathcnf(XDR *xdrs, ppathcnf *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; int i=i; @@ -240,7 +240,7 @@ xdr_ppathcnf(XDR *xdrs, ppathcnf *objp) } else { - { register short *genp; + { short *genp; for ( i = 0,genp=objp->pc_mask; i < 2; i++){ IXDR_PUT_SHORT(buf,*genp++); @@ -294,7 +294,7 @@ xdr_ppathcnf(XDR *xdrs, ppathcnf *objp) } else { - { register short *genp; + { short *genp; for ( i = 0,genp=objp->pc_mask; i < 2; i++){ *genp++ = IXDR_GET_SHORT(buf); diff --git a/tdeioslave/nfs/nfs_prot_xdr.c b/tdeioslave/nfs/nfs_prot_xdr.c index 57d446489..71d2a58b7 100644 --- a/tdeioslave/nfs/nfs_prot_xdr.c +++ b/tdeioslave/nfs/nfs_prot_xdr.c @@ -47,7 +47,7 @@ bool_t xdr_nfsstat(XDR *xdrs, nfsstat *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_enum(xdrs, (enum_t *)objp)) { return (FALSE); @@ -59,7 +59,7 @@ bool_t xdr_ftype(XDR *xdrs, ftype *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_enum(xdrs, (enum_t *)objp)) { return (FALSE); @@ -71,7 +71,7 @@ bool_t xdr_nfs_fh(XDR *xdrs, nfs_fh *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; int i=i; if (!xdr_opaque(xdrs, objp->data, NFS_FHSIZE)) { @@ -84,7 +84,7 @@ bool_t xdr_nfstime(XDR *xdrs, nfstime *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_u_int(xdrs, &objp->seconds)) { return (FALSE); @@ -99,7 +99,7 @@ bool_t xdr_fattr(XDR *xdrs, fattr *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (xdrs->x_op == XDR_ENCODE) { @@ -274,7 +274,7 @@ bool_t xdr_sattr(XDR *xdrs, sattr *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (xdrs->x_op == XDR_ENCODE) { @@ -365,7 +365,7 @@ bool_t xdr_filename(XDR *xdrs, filename *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_string(xdrs, objp, NFS_MAXNAMLEN)) { return (FALSE); @@ -377,7 +377,7 @@ bool_t xdr_nfspath(XDR *xdrs, nfspath *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_string(xdrs, objp, NFS_MAXPATHLEN)) { return (FALSE); @@ -389,7 +389,7 @@ bool_t xdr_attrstat(XDR *xdrs, attrstat *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfsstat(xdrs, &objp->status)) { return (FALSE); @@ -410,7 +410,7 @@ bool_t xdr_sattrargs(XDR *xdrs, sattrargs *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfs_fh(xdrs, &objp->file)) { return (FALSE); @@ -425,7 +425,7 @@ bool_t xdr_diropargs(XDR *xdrs, diropargs *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfs_fh(xdrs, &objp->dir)) { return (FALSE); @@ -440,7 +440,7 @@ bool_t xdr_diropokres(XDR *xdrs, diropokres *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfs_fh(xdrs, &objp->file)) { return (FALSE); @@ -455,7 +455,7 @@ bool_t xdr_diropres(XDR *xdrs, diropres *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfsstat(xdrs, &objp->status)) { return (FALSE); @@ -476,7 +476,7 @@ bool_t xdr_readlinkres(XDR *xdrs, readlinkres *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfsstat(xdrs, &objp->status)) { return (FALSE); @@ -497,7 +497,7 @@ bool_t xdr_readargs(XDR *xdrs, readargs *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfs_fh(xdrs, &objp->file)) { return (FALSE); @@ -518,7 +518,7 @@ bool_t xdr_readokres(XDR *xdrs, readokres *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_fattr(xdrs, &objp->attributes)) { return (FALSE); @@ -533,7 +533,7 @@ bool_t xdr_readres(XDR *xdrs, readres *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfsstat(xdrs, &objp->status)) { return (FALSE); @@ -554,7 +554,7 @@ bool_t xdr_writeargs(XDR *xdrs, writeargs *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (xdrs->x_op == XDR_ENCODE) { @@ -634,7 +634,7 @@ bool_t xdr_createargs(XDR *xdrs, createargs *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_diropargs(xdrs, &objp->where)) { return (FALSE); @@ -649,7 +649,7 @@ bool_t xdr_renameargs(XDR *xdrs, renameargs *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_diropargs(xdrs, &objp->from)) { return (FALSE); @@ -664,7 +664,7 @@ bool_t xdr_linkargs(XDR *xdrs, linkargs *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfs_fh(xdrs, &objp->from)) { return (FALSE); @@ -679,7 +679,7 @@ bool_t xdr_symlinkargs(XDR *xdrs, symlinkargs *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_diropargs(xdrs, &objp->from)) { return (FALSE); @@ -697,7 +697,7 @@ bool_t xdr_nfscookie(XDR *xdrs, nfscookie objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_opaque(xdrs, objp, NFS_COOKIESIZE)) { return (FALSE); @@ -709,7 +709,7 @@ bool_t xdr_readdirargs(XDR *xdrs, readdirargs *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfs_fh(xdrs, &objp->dir)) { return (FALSE); @@ -727,7 +727,7 @@ bool_t xdr_entry(XDR *xdrs, entry *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_u_int(xdrs, &objp->fileid)) { return (FALSE); @@ -748,7 +748,7 @@ bool_t xdr_dirlist(XDR *xdrs, dirlist *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_pointer(xdrs, (char **)&objp->entries, sizeof(entry), (xdrproc_t)xdr_entry)) { return (FALSE); @@ -763,7 +763,7 @@ bool_t xdr_readdirres(XDR *xdrs, readdirres *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfsstat(xdrs, &objp->status)) { return (FALSE); @@ -784,7 +784,7 @@ bool_t xdr_statfsokres(XDR *xdrs, statfsokres *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (xdrs->x_op == XDR_ENCODE) { @@ -868,7 +868,7 @@ bool_t xdr_statfsres(XDR *xdrs, statfsres *objp) { - register int32_t *buf=buf; + int32_t *buf=buf; if (!xdr_nfsstat(xdrs, &objp->status)) { return (FALSE); |