From 7082532001150fdfc87fb121dae0bbf544776606 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 6 Dec 2002 00:22:24 +0000 Subject: [PATCH] distinguish between db status and other types --- src/rsrv/camessage.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/rsrv/camessage.c b/src/rsrv/camessage.c index 16c9d10de..4d87cbcf3 100644 --- a/src/rsrv/camessage.c +++ b/src/rsrv/camessage.c @@ -41,6 +41,7 @@ #include "asDbLib.h" typedef unsigned long arrayElementCount; + #include "net_convert.h" #include "server.h" @@ -749,7 +750,8 @@ LOCAL int write_action ( caHdrLargeArray *mp, { struct channel_in_use *pciu; int v41; - long status; + int status; + long dbStatus; void *asWritePvt; pciu = MPTOPCIU(mp); @@ -802,14 +804,14 @@ LOCAL int write_action ( caHdrLargeArray *mp, pciu->client->pHostName ? pciu->client->pHostName : "", (void *) &pciu->addr ); - status = db_put_field( + dbStatus = db_put_field( &pciu->addr, mp->m_dataType, pPayload, mp->m_count); asTrapWriteAfter(asWritePvt); - if (status < 0) { + if (dbStatus < 0) { SEND_LOCK(client); send_err( mp,