From 304a5ef0a9b47d6d7242b120c2f5ea6d4e27156e Mon Sep 17 00:00:00 2001 From: eeb Date: Fri, 20 Feb 2004 20:15:59 +0000 Subject: [PATCH] * Brought portals error and handle declarations into line with the portals spec. --- lnet/lnet/lib-eq.c | 6 +++--- lustre/portals/portals/lib-eq.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lnet/lnet/lib-eq.c b/lnet/lnet/lib-eq.c index ce343c1..8a91860 100644 --- a/lnet/lnet/lib-eq.c +++ b/lnet/lnet/lib-eq.c @@ -52,7 +52,7 @@ int do_PtlEQAlloc_internal(nal_cb_t * nal, void *private, void *v_args, eq = lib_eq_alloc (nal); if (eq == NULL) - return (ret->rc = PTL_NOSPACE); + return (ret->rc = PTL_NO_SPACE); state_lock(nal, &flags); @@ -104,9 +104,9 @@ int do_PtlEQFree_internal(nal_cb_t * nal, void *private, void *v_args, eq = ptl_handle2eq(&args->eventq_in, nal); if (eq == NULL) { - ret->rc = PTL_INV_EQ; + ret->rc = PTL_EQ_INVALID; } else if (eq->eq_refcount != 0) { - ret->rc = PTL_EQ_INUSE; + ret->rc = PTL_EQ_IN_USE; } else { if (nal->cb_unmap != NULL) { struct iovec iov = { diff --git a/lustre/portals/portals/lib-eq.c b/lustre/portals/portals/lib-eq.c index ce343c1..8a91860 100644 --- a/lustre/portals/portals/lib-eq.c +++ b/lustre/portals/portals/lib-eq.c @@ -52,7 +52,7 @@ int do_PtlEQAlloc_internal(nal_cb_t * nal, void *private, void *v_args, eq = lib_eq_alloc (nal); if (eq == NULL) - return (ret->rc = PTL_NOSPACE); + return (ret->rc = PTL_NO_SPACE); state_lock(nal, &flags); @@ -104,9 +104,9 @@ int do_PtlEQFree_internal(nal_cb_t * nal, void *private, void *v_args, eq = ptl_handle2eq(&args->eventq_in, nal); if (eq == NULL) { - ret->rc = PTL_INV_EQ; + ret->rc = PTL_EQ_INVALID; } else if (eq->eq_refcount != 0) { - ret->rc = PTL_EQ_INUSE; + ret->rc = PTL_EQ_IN_USE; } else { if (nal->cb_unmap != NULL) { struct iovec iov = { -- 1.8.3.1