summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-01-11 21:55:17 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-01-11 21:55:17 +0000
commit8134d94190a7d682a41606f80b293bc00432cac4 (patch)
tree7a33621ad7f799cd3b5b6df122b3989c6ee2d61e /apps
parentb1f9480886e6199e4737db1806f048dce1df46ae (diff)
downloadATCD-8134d94190a7d682a41606f80b293bc00432cac4.tar.gz
*** empty log message ***
Diffstat (limited to 'apps')
-rw-r--r--apps/Gateway/Gateway/Concrete_Connection_Handlers.cpp2
-rw-r--r--apps/Gateway/Gateway/Gateway.cpp2
-rw-r--r--apps/Gateway/Peer/Peer.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/Gateway/Gateway/Concrete_Connection_Handlers.cpp b/apps/Gateway/Gateway/Concrete_Connection_Handlers.cpp
index 86d73d3e9b2..3a093c2f1d9 100644
--- a/apps/Gateway/Gateway/Concrete_Connection_Handlers.cpp
+++ b/apps/Gateway/Gateway/Concrete_Connection_Handlers.cpp
@@ -277,7 +277,7 @@ Supplier_Handler::recv (ACE_Message_Block *&forward_addr)
// it directly without having to repeatedly muck with it...
event->header_.decode ();
- if (event->header_.len_ > sizeof event->data_)
+ if (event->header_.len_ > ACE_INT32 (sizeof event->data_))
{
// This data_ payload is too big!
errno = EINVAL;
diff --git a/apps/Gateway/Gateway/Gateway.cpp b/apps/Gateway/Gateway/Gateway.cpp
index fee231cfe15..a6d6c3660d3 100644
--- a/apps/Gateway/Gateway/Gateway.cpp
+++ b/apps/Gateway/Gateway/Gateway.cpp
@@ -199,7 +199,7 @@ Gateway::parse_connection_config_file (void)
// First time in check.
if (previous_connection_id == 0)
{
- previous_connection_id == 1;
+ previous_connection_id = 1;
if (pci.connection_id_ != 1)
ACE_DEBUG ((LM_DEBUG,
diff --git a/apps/Gateway/Peer/Peer.cpp b/apps/Gateway/Peer/Peer.cpp
index f65db04f6ca..47ee65b5a26 100644
--- a/apps/Gateway/Peer/Peer.cpp
+++ b/apps/Gateway/Peer/Peer.cpp
@@ -344,7 +344,7 @@ Peer_Handler::recv (ACE_Message_Block *&mb)
// it directly without having to repeatedly muck with it...
event->header_.decode ();
- if (event->header_.len_ > sizeof event->data_)
+ if (event->header_.len_ > ACE_INT32 (sizeof event->data_))
{
// This data_ payload is too big!
errno = EINVAL;
@@ -497,7 +497,7 @@ Peer_Handler::subscribe (void)
Subscription *subscription = (Subscription *) ((Event *) mb->rd_ptr ())->data_;
subscription->connection_id_ = Options::instance ()->connection_id ();
- this->transmit (mb, sizeof *subscription, SUBSCRIPTION_EVENT);
+ return this->transmit (mb, sizeof *subscription, SUBSCRIPTION_EVENT);
}
// Action that receives events from the Gateway.