#include <fcntl.h>
#include <unistd.h>
#if defined(linux)
-# include <g++/minmax.h>
+/*# include <g++/minmax.h>*/
#else
# include <macros.h>
#endif
return;
}
- _Tt_string &svr_cookie =
+ const _Tt_string &svr_cookie =
_tt_s_mp->initial_s_session->auth_cookie();
if (clnt_cookie != svr_cookie) {
svcerr_auth(transp, AUTH_BADCRED);
// introduced into protocol version 2, it can be assumed that
// the caller is using at least xdr version 3.
//
- _Tt_xdr_version xvers( max(_tt_global->xdr_version(),
- TT_CONTEXTS_XDR_VERSION) );
+// _Tt_xdr_version xvers( max(_tt_global->xdr_version(),
+// TT_CONTEXTS_XDR_VERSION) );
+ if(_tt_global->xdr_version() > TT_CONTEXTS_XDR_VERSION) {
+ _Tt_xdr_version xvers(_tt_global->xdr_version() );
+ } else {
+ _Tt_xdr_version xvers(TT_CONTEXTS_XDR_VERSION);
+ }
_tt_rpc_add_pattern(transp);
}
*/
#include <stdlib.h>
#if defined(linux)
-# include <g++/minmax.h>
+/*# include <g++/minmax.h>*/
#else
# include <macros.h>
#endif
{
int version = TT_TYPESDB_DEFAULT_XDR_VERSION;
if (_contexts->count() > 0) {
- version = max(version, TT_CONTEXTS_XDR_VERSION);
+ if(TT_CONTEXTS_XDR_VERSION > version) {
+ version = TT_CONTEXTS_XDR_VERSION;
+ }
+// version = max(version, TT_CONTEXTS_XDR_VERSION);
}
switch (_pattern_category) {
case TT_HANDLE_PUSH:
case TT_HANDLE_ROTATE:
- version = max(version, TT_PUSH_ROTATE_XDR_VERSION);
+ if(TT_PUSH_ROTATE_XDR_VERSION > version) {
+ version = TT_PUSH_ROTATE_XDR_VERSION;
+ }
+// version = max(version, TT_PUSH_ROTATE_XDR_VERSION);
break;
}
return version;
int version = TT_TYPESDB_DEFAULT_XDR_VERSION;
_Tt_signature_list_cursor sigC( sigs );
while (sigC.next()) {
- version = max(version, sigC->xdr_version_required());
+ if(sigC->xdr_version_required() > version) {
+ version = sigC->xdr_version_required();
+ }
+// version = max(version, sigC->xdr_version_required());
}
return version;
}
//
#include <stdlib.h>
#if defined(linux)
-# include <g++/minmax.h>
+/*# include <g++/minmax.h>*/
#else
# include <macros.h>
#endif
int version = TT_TYPESDB_DEFAULT_XDR_VERSION;
_Tt_ptype_table_cursor ptypes(ptable);
while (ptypes.next()) {
- version = max(version, ptypes->xdr_version_required());
+ if(ptypes->xdr_version_required() > version) {
+ version = ptypes->xdr_version_required();
+ }
+// version = max(version, ptypes->xdr_version_required());
}
_Tt_otype_table_cursor otypes(otable);
while (otypes.next()) {
- version = max(version, otypes->xdr_version_required());
+ if(otypes->xdr_version_required() > version) {
+ version = otypes->xdr_version_required();
+ }
+// version = max(version, otypes->xdr_version_required());
}
return version;
}