summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-02-18 03:20:59 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-02-18 03:20:59 +0000
commit044465386cb8dd9075d80fb98e221069556f6ff0 (patch)
tree54a8aa4d966b07ef0b6d778a16290d8178e77f31 /ace
parent3349e6ba8e89325f398df0791384248a644b2a7a (diff)
downloadATCD-044465386cb8dd9075d80fb98e221069556f6ff0.tar.gz
foo
Diffstat (limited to 'ace')
-rw-r--r--ace/ACE.cpp12
-rw-r--r--ace/OS.h8
-rw-r--r--ace/OS.i18
-rw-r--r--ace/SPIPE_Acceptor.cpp15
-rw-r--r--ace/UPIPE_Stream.cpp4
-rw-r--r--ace/XtReactor.cpp4
6 files changed, 41 insertions, 20 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp
index 79b6ccbba59..e329a233e72 100644
--- a/ace/ACE.cpp
+++ b/ace/ACE.cpp
@@ -370,7 +370,7 @@ ACE::send_n (ACE_HANDLE handle, const void *buf, size_t len)
{
ACE_TRACE ("ACE::send_n");
size_t bytes_written;
- ssize_t n;
+ ssize_t n = 0;
for (bytes_written = 0; bytes_written < len; bytes_written += n)
{
@@ -396,7 +396,7 @@ ACE::send_n (ACE_HANDLE handle,
{
ACE_TRACE ("ACE::send_n");
size_t bytes_written;
- ssize_t n;
+ ssize_t n = 0;
for (bytes_written = 0; bytes_written < len; bytes_written += n)
{
@@ -426,7 +426,7 @@ ACE::write_n (ACE_HANDLE handle,
ACE_TRACE ("ACE::write_n");
size_t bytes_written;
- ssize_t n;
+ ssize_t n = 0;
for (bytes_written = 0; bytes_written < len; bytes_written += n)
{
@@ -449,7 +449,7 @@ ACE::recv_n (ACE_HANDLE handle, void *buf, size_t len)
{
ACE_TRACE ("ACE::recv_n");
size_t bytes_read;
- ssize_t n;
+ ssize_t n = 0;
for (bytes_read = 0; bytes_read < len; bytes_read += n)
{
@@ -473,7 +473,7 @@ ACE::recv_n (ACE_HANDLE handle, void *buf, size_t len, int flags)
{
ACE_TRACE ("ACE::recv_n");
size_t bytes_read;
- ssize_t n;
+ ssize_t n = 0;
for (bytes_read = 0; bytes_read < len; bytes_read += n)
{
@@ -504,7 +504,7 @@ ACE::read_n (ACE_HANDLE handle,
ACE_TRACE ("ACE::read_n");
size_t bytes_read;
- ssize_t n;
+ ssize_t n = 0;
for (bytes_read = 0; bytes_read < len; bytes_read += n)
{
diff --git a/ace/OS.h b/ace/OS.h
index a4f400bbbcf..db1c2da87ef 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -2466,8 +2466,8 @@ public:
static long filesize (ACE_HANDLE handle);
static int getmsg (ACE_HANDLE handle, struct strbuf *ctl, struct strbuf
*data, int *flags);
- static getpmsg (ACE_HANDLE handle, struct strbuf *ctl, struct strbuf
- *data, int *band, int *flags);
+ static int getpmsg (ACE_HANDLE handle, struct strbuf *ctl, struct strbuf
+ *data, int *band, int *flags);
static int ioctl (ACE_HANDLE handle, int cmd, void * = 0);
static int isastream (ACE_HANDLE handle);
static int isatty (ACE_HANDLE handle);
@@ -2475,8 +2475,8 @@ public:
static ACE_HANDLE open (const char *filename, int mode, int perms = 0);
static int putmsg (ACE_HANDLE handle, const struct strbuf *ctl, const
struct strbuf *data, int flags);
- static putpmsg (ACE_HANDLE handle, const struct strbuf *ctl, const
- struct strbuf *data, int band, int flags);
+ static int putpmsg (ACE_HANDLE handle, const struct strbuf *ctl, const
+ struct strbuf *data, int band, int flags);
static ssize_t read (ACE_HANDLE handle, void *buf, size_t len);
static ssize_t read (ACE_HANDLE handle, void *buf, size_t len, ACE_OVERLAPPED *);
static ssize_t readv (ACE_HANDLE handle, struct iovec *iov, int iovlen);
diff --git a/ace/OS.i b/ace/OS.i
index b713ec01d4e..3c3911292bc 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -2606,6 +2606,7 @@ ACE_OS::getprotobyname_r (const char *name,
return 0;
#else
#if defined(ACE_LACKS_NETDB_REENTRANT_FUNCTIONS)
+ ACE_UNUSED_ARG (result);
ACE_NETDBCALL_RETURN (::getprotobyname (name),
struct protoent *, 0,
buffer, sizeof (ACE_PROTOENT_DATA));
@@ -2652,6 +2653,7 @@ ACE_OS::getprotobynumber_r (int proto,
return 0;
#else
#if defined(ACE_LACKS_NETDB_REENTRANT_FUNCTIONS)
+ ACE_UNUSED_ARG (result);
ACE_NETDBCALL_RETURN (::getprotobynumber (proto),
struct protoent *, 0,
buffer, sizeof (ACE_PROTOENT_DATA));
@@ -2874,6 +2876,8 @@ ACE_OS::gethostbyaddr_r (const char *addr, int length, int type,
}
#else
#if defined(ACE_LACKS_NETDB_REENTRANT_FUNCTIONS)
+ ACE_UNUSED_ARG (result);
+ ACE_UNUSED_ARG (h_errnop);
ACE_NETDBCALL_RETURN (::gethostbyaddr (addr, (ACE_SOCKET_LEN) length, type),
struct hostent *, 0,
buffer, sizeof (ACE_HOSTENT_DATA));
@@ -2921,6 +2925,8 @@ ACE_OS::gethostbyname_r (const char *name, hostent *result,
}
#else
#if defined(ACE_LACKS_NETDB_REENTRANT_FUNCTIONS)
+ ACE_UNUSED_ARG (result);
+ ACE_UNUSED_ARG (h_errnop);
ACE_NETDBCALL_RETURN (::gethostbyname (name),
struct hostent *, 0,
buffer, sizeof (ACE_HOSTENT_DATA));
@@ -2965,6 +2971,7 @@ ACE_OS::getservbyname_r (const char *svc, const char *proto,
return (struct servent *) 0;
#else
#if defined(ACE_LACKS_NETDB_REENTRANT_FUNCTIONS)
+ ACE_UNUSED_ARG (result);
ACE_NETDBCALL_RETURN (::getservbyname (svc, proto),
struct servent *, 0,
buf, sizeof (ACE_SERVENT_DATA));
@@ -3372,6 +3379,7 @@ ACE_OS::thr_continue (ACE_hthread_t target_thread)
#if defined (ACE_HAS_STHREADS)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::thr_continue (target_thread), ace_result_), int, -1);
#elif defined (ACE_HAS_DCETHREADS) || defined (ACE_HAS_PTHREADS)
+ ACE_UNUSED_ARG (target_thread);
ACE_NOTSUP_RETURN (-1);
#elif defined (ACE_HAS_WTHREADS)
return ::ResumeThread (target_thread) != ACE_SYSCALL_FAILED ? 0 : -1;
@@ -3507,6 +3515,7 @@ ACE_OS::thr_join (ACE_thread_t waiter_id,
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::thr_join (waiter_id, thr_id, status), ace_result_),
int, -1);
#elif defined (ACE_HAS_DCETHREADS) || defined (ACE_HAS_PTHREADS)
+ ACE_UNUSED_ARG (thr_id);
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_join (waiter_id, status), ace_result_),
int, -1);
#elif defined (ACE_HAS_WTHREADS)
@@ -3587,6 +3596,8 @@ ACE_OS::thr_setcancelstate (int new_state, int *old_state)
// I didn't manage to find pthread_cancel anywhere in the MIT pthread
// implementation. So I'll just leave this instead, and see what
// breaks. -- jwr
+ ACE_UNUSED_ARG (old_state);
+ ACE_UNUSED_ARG (new_state);
ACE_NOTSUP_RETURN (-1);
#elif defined (ACE_HAS_STHREADS)
ACE_NOTSUP_RETURN (-1);
@@ -3622,6 +3633,8 @@ ACE_OS::thr_setcanceltype (int new_type, int *old_type)
// I didn't manage to find pthread_cancel anywhere int the MIT pthread
// implementation. So I'll just leave this instead, and see what
// breaks. -- jwr
+ ACE_UNUSED_ARG (new_type);
+ ACE_UNUSED_ARG (old_type);
ACE_NOTSUP_RETURN (-1);
#elif defined (ACE_HAS_STHREADS)
ACE_NOTSUP_RETURN (-1);
@@ -3651,6 +3664,7 @@ ACE_OS::thr_cancel (ACE_thread_t thr_id)
// I didn't manage to find pthread_cancel anywhere int the MIT
// pthread implementation. So I'll just leave this instead, and
// see what breaks. -- jwr
+ ACE_UNUSED_ARG (t_id);
ACE_NOTSUP_RETURN (-1);
#elif defined (ACE_HAS_STHREADS)
ACE_NOTSUP_RETURN (-1);
@@ -3914,9 +3928,10 @@ ACE_OS::thr_setconcurrency (int hint)
ace_result_),
int, -1);
#elif defined (ACE_HAS_DCETHREADS) || defined (ACE_HAS_PTHREADS)
+ ACE_UNUSED_ARG (hint);
ACE_NOTSUP_RETURN (-1);
#elif defined (ACE_HAS_WTHREADS)
- ACE_UNUSED_ARG(hint);
+ ACE_UNUSED_ARG (hint);
ACE_NOTSUP_RETURN (-1);
#elif defined (VXWORKS)
@@ -3972,6 +3987,7 @@ ACE_OS::thr_suspend (ACE_hthread_t target_thread)
#if defined (ACE_HAS_STHREADS)
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::thr_suspend (target_thread), ace_result_), int, -1);
#elif defined (ACE_HAS_DCETHREADS) || defined (ACE_HAS_PTHREADS)
+ ACE_UNUSED_ARG (target_thread);
ACE_NOTSUP_RETURN (-1);
#elif defined (ACE_HAS_WTHREADS)
if (::SuspendThread (target_thread) != ACE_SYSCALL_FAILED)
diff --git a/ace/SPIPE_Acceptor.cpp b/ace/SPIPE_Acceptor.cpp
index e89fdcdab6b..af5adf48a3d 100644
--- a/ace/SPIPE_Acceptor.cpp
+++ b/ace/SPIPE_Acceptor.cpp
@@ -84,8 +84,8 @@ ACE_SPIPE_Acceptor::create_new_instance (int perms)
FILE_FLAG_OVERLAPPED,
PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE,
MAX_PIPE_INSTANCES,
- 1024*10,
- 1024*10,
+ 1024 * 10,
+ 1024 * 10,
ACE_DEFAULT_TIMEOUT,
NULL);
if (handle == ACE_INVALID_HANDLE)
@@ -94,6 +94,7 @@ ACE_SPIPE_Acceptor::create_new_instance (int perms)
this->set_handle (handle);
return 0;
#else
+ ACE_UNUSED_ARG (perms);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_STREAM_PIPES */
}
@@ -158,9 +159,9 @@ ACE_SPIPE_Acceptor::accept (ACE_SPIPE_Stream &new_io,
return 0;
#elif defined (ACE_WIN32)
- ACE_UNUSED_ARG(restart);
- ACE_UNUSED_ARG(timeout);
- ACE_UNUSED_ARG(remote_addr);
+ ACE_UNUSED_ARG (restart);
+ ACE_UNUSED_ARG (timeout);
+ ACE_UNUSED_ARG (remote_addr);
// Check to see if we have a valid pipe
if (this->get_handle () == ACE_INVALID_HANDLE)
@@ -210,6 +211,10 @@ ACE_SPIPE_Acceptor::accept (ACE_SPIPE_Stream &new_io,
// Create a new instance of the pipe for the next connection.
return this->create_new_instance ();
#else
+ ACE_UNUSED_ARG (restart);
+ ACE_UNUSED_ARG (timeout);
+ ACE_UNUSED_ARG (remote_addr);
+ ACE_UNUSED_ARG (new_io);
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_STREAM_PIPES */
}
diff --git a/ace/UPIPE_Stream.cpp b/ace/UPIPE_Stream.cpp
index b68183f06f2..7aa4c3228d9 100644
--- a/ace/UPIPE_Stream.cpp
+++ b/ace/UPIPE_Stream.cpp
@@ -171,7 +171,7 @@ ACE_UPIPE_Stream::send_n (const char *buf,
ACE_TRACE ("ACE_UPIPE_Stream::send_n");
size_t bytes_written;
- ssize_t len;
+ ssize_t len = 0;
for (bytes_written = 0;
bytes_written < n;
@@ -195,7 +195,7 @@ ACE_UPIPE_Stream::recv_n (char *buf,
{
ACE_TRACE ("ACE_UPIPE_Stream::recv_n");
size_t bytes_read;
- ssize_t len;
+ ssize_t len = 0;
for (bytes_read = 0;
bytes_read < n;
diff --git a/ace/XtReactor.cpp b/ace/XtReactor.cpp
index 0ff8636e048..5f783afcc19 100644
--- a/ace/XtReactor.cpp
+++ b/ace/XtReactor.cpp
@@ -107,7 +107,7 @@ ACE_XtReactor::TimerCallbackProc (XtPointer closure, XtIntervalId *id)
void ACE_XtReactor::InputCallbackProc (XtPointer closure,
int * source,
- XtInputId *id)
+ XtInputId *)
{
ACE_XtReactor *self = (ACE_XtReactor *) closure;
@@ -150,7 +150,7 @@ void ACE_XtReactor::InputCallbackProc (XtPointer closure,
int ACE_XtReactor::XtWaitForMultipleEvents (int width,
ACE_Reactor_Handle_Set &wait_set,
- ACE_Time_Value *max_wait_time)
+ ACE_Time_Value *)
{
// Check to make sure our handle's are all usable.