summaryrefslogtreecommitdiff
path: root/netsvcs
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-18 03:56:19 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-18 03:56:19 +0000
commit8825d290d8873c6ee96e27dcba1f1c8bf59d2236 (patch)
treef8913a7ba038ec752e3d98e49b18950a374a85a9 /netsvcs
parente1b089abb1df9b1c7a5f6eabf1100b6c21ec1fe8 (diff)
downloadATCD-8825d290d8873c6ee96e27dcba1f1c8bf59d2236.tar.gz
ywhoopie!!
More new stuff, more things will break!! I have no idea about this file. Heck, I am not even Doug!
Diffstat (limited to 'netsvcs')
-rw-r--r--netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp8
-rw-r--r--netsvcs/lib/Server_Logging_Handler.cpp3
2 files changed, 4 insertions, 7 deletions
diff --git a/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp b/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp
index fb2ee3ed1d0..84505eadd6b 100644
--- a/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp
+++ b/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp
@@ -55,11 +55,7 @@ Dump_Restore::handle_input (ACE_HANDLE)
{
char option[BUFSIZ];
char buf1[BUFSIZ];
- char buf2[BUFSIZ];
- char buf3[BUFSIZ];
- char *temp_buf;
- int port;
- char input[256];
+ u_short port;
if (::scanf ("%s", option) <= 0)
{
@@ -273,7 +269,7 @@ Dump_Restore::populate (Dump_Restore::Operation_Type op)
// reset file pointer
ACE_OS::rewind (this->infile_);
- ACE_Allocator *allocator = ACE_Service_Config::allocator ();
+ ACE_Allocator *allocator = ACE_Service_Config::alloc ();
ACE_Read_Buffer read_buffer (this->infile_, 0, allocator);
for (char *temp; (temp = read_buffer.read ('\n')) != 0; )
diff --git a/netsvcs/lib/Server_Logging_Handler.cpp b/netsvcs/lib/Server_Logging_Handler.cpp
index a1271655b40..a71d4190554 100644
--- a/netsvcs/lib/Server_Logging_Handler.cpp
+++ b/netsvcs/lib/Server_Logging_Handler.cpp
@@ -197,7 +197,8 @@ ACE_Server_Logging_Handler<ACE_PEER_STREAM_2, COUNTER, ACE_SYNCH_2>::handle_logg
#endif /* ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES */
len = ntohl (len);
- if ((n = this->peer ().recv_n ((void *) &lp, len)) != len)
+ n = this->peer ().recv_n ((void *) &lp, len);
+ if (n != len)
ACE_ERROR_RETURN ((LM_ERROR, "len = %d, %p at host %s\n",
n, "server logger", this->host_name_), -1);
/* NOTREACHED */