X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fubik%2Fremote.c;h=bb5354a7b037fa99fff08a696569baeb78bfb15e;hp=6f0d9438e2352a927de221aafa587cb255f3d07d;hb=366a772a80357ab09a9dd02cb34ef87cdfab25ec;hpb=2c0184532bedf259aad338c2d18eeca2c9e3e196 diff --git a/src/ubik/remote.c b/src/ubik/remote.c index 6f0d943..bb5354a 100644 --- a/src/ubik/remote.c +++ b/src/ubik/remote.c @@ -19,6 +19,13 @@ RCSID("$Header$"); #include #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include @@ -58,7 +65,7 @@ SDISK_Begin(rxcall, atid) { register afs_int32 code; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return code; } DBHOLD(ubik_dbase); @@ -87,7 +94,7 @@ SDISK_Commit(rxcall, atid) register afs_int32 code; register struct ubik_dbase *dbase; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return code; } @@ -125,7 +132,7 @@ SDISK_ReleaseLocks(rxcall, atid) register struct ubik_dbase *dbase; register afs_int32 code; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return code; } @@ -161,7 +168,7 @@ SDISK_Abort(rxcall, atid) register afs_int32 code; register struct ubik_dbase *dbase; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return code; } @@ -200,7 +207,7 @@ SDISK_Lock(rxcall, atid, afile, apos, alen, atype) register struct ubik_dbase *dbase; struct ubik_trans *ubik_thisTrans; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return code; } if (!ubik_currentTrans) { @@ -249,7 +256,7 @@ SDISK_WriteV(rxcall, atid, io_vector, io_buffer) struct ubik_iovec *iovec; char *iobuf; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return code; } if (!ubik_currentTrans) { @@ -296,7 +303,7 @@ SDISK_Write(rxcall, atid, afile, apos, adata) register afs_int32 code; register struct ubik_dbase *dbase; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return code; } if (!ubik_currentTrans) { @@ -328,7 +335,7 @@ SDISK_Truncate(rxcall, atid, afile, alen) register afs_int32 code; register struct ubik_dbase *dbase; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return code; } if (!ubik_currentTrans) { @@ -357,7 +364,7 @@ SDISK_GetVersion(rxcall, aversion) { register afs_int32 code; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return code; } @@ -401,7 +408,7 @@ SDISK_GetFile(rxcall, file, version) afs_int32 tlen; afs_int32 length; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return code; } /* temporarily disabled because it causes problems for migration tool. Hey, it's just @@ -463,7 +470,7 @@ SDISK_SendFile(rxcall, file, length, avers) /* send the file back to the requester */ - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { goto failed; } @@ -640,7 +647,7 @@ SDISK_SetVersion(rxcall, atid, oldversionp, newversionp) afs_int32 code=0; struct ubik_dbase *dbase; - if (code = ubik_CheckAuth(rxcall)) { + if ((code = ubik_CheckAuth(rxcall))) { return(code); }