From 2f3befc8457f92776455cf34bdf6bd1fdc95acfa Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 4 Sep 1996 20:02:00 +0000 Subject: [PATCH] test for non-nill piiu under vxWorks --- src/ca/access.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ca/access.c b/src/ca/access.c index 945df1ba7..fb2a036b8 100644 --- a/src/ca/access.c +++ b/src/ca/access.c @@ -99,6 +99,9 @@ /************************************************************************/ /* * $Log$ + * Revision 1.84 1996/07/10 23:30:09 jhill + * fixed GNU warnings + * * Revision 1.83 1996/07/09 22:43:29 jhill * silence gcc warnings and default CLOCKS_PER_SEC if it isnt defined (for sunos4 and gcc) * @@ -1544,14 +1547,16 @@ void *usrarg piiu = chix->piiu; - if(!CA_V41(CA_PROTOCOL_VERSION, piiu->minor_version_number)){ - return ECA_NOSUPPORT; + if (piiu) { + if(!CA_V41(CA_PROTOCOL_VERSION, piiu->minor_version_number)){ + return ECA_NOSUPPORT; + } } #ifdef vxWorks if (!piiu) { CACLIENTPUTNOTIFY *ppn; - int size; + unsigned size; size = dbr_size_n(type,count); LOCK;