From 9bbb9c1314eb7f7ffeeb202f1923b02d97dc36cc Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 16 Aug 2001 01:19:03 +0000 Subject: [PATCH] reduce the numbe rof error constants in use --- src/ca/nciu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ca/nciu.cpp b/src/ca/nciu.cpp index 118280589..bc7bc1b3c 100644 --- a/src/ca/nciu.cpp +++ b/src/ca/nciu.cpp @@ -28,7 +28,7 @@ #define epicsExportSharedSymbols #include "udpiiu.h" -#include "cadef.h" // for ECA_STRTOBIG and TYPENOTCONN etc +#include "cadef.h" #include "db_access.h" // for INVALID_DB_REQ #undef epicsExportSharedSymbols @@ -54,7 +54,7 @@ nciu::nciu ( cac &cacIn, netiiu &iiuIn, cacChannelNotify &chanIn, { // second constraint is imposed by size field in protocol header if ( this->nameLength > MAX_UDP_SEND - sizeof ( caHdr ) || this->nameLength > 0xffff ) { - throwWithLocation ( caErrorCode ( ECA_STRTOBIG ) ); + throwWithLocation ( caErrorCode ( ECA_BADSTR ) ); } this->pNameStr = new char [ this->nameLength ];