libDtSvc: Resolve 28 compiler warnings.

This commit is contained in:
Peter Howkins
2015-01-14 14:10:55 +00:00
parent 49266f9019
commit 5c8f66a07d
12 changed files with 31 additions and 19 deletions

View File

@@ -206,7 +206,7 @@ void local_channel_object_input_handler(void * client_data,
timeout.tv_sec = 0;
timeout.tv_usec = 0;
#if defined(SVR4) || defined(__osf__) || defined(__hpux) || defined(__OpenBSD__)
#if defined(SVR4) || defined(__osf__) || defined(__hpux) || defined(__OpenBSD__) || defined(linux)
select(max_fds, (fd_set*)&read_fd_vect, NULL, (fd_set*)&except_fd_vect, &timeout);
#else
/* UX has select defined with int*, not fd_set* parms */

View File

@@ -41,6 +41,7 @@
#include <stdarg.h>
#include <sys/utsname.h>
#include <limits.h>
#include <stdint.h>
#define X_INCLUDE_PWD_H
#define XOS_USE_XT_LOCKING
@@ -652,7 +653,7 @@ int print_protocol_request(XeString name, protocol_request_ptr proto)
dptr->data[dptr->offset+dptr->len]=0;
fprintf(SPC_Print_Protocol,
"%s channel: %x, request: %d, length: %d, seq: %d data: %s\n",
"%s channel: %p, request: %d, length: %d, seq: %d data: %s\n",
name, proto->channel, proto->request_type, dptr->len, proto->seqno,
dptr->data+dptr->offset);
@@ -691,7 +692,7 @@ int SPC_Write_Protocol_Request (SPC_Connection_Ptr connection,
/* We are overloading the "channel" field. We put the cid rather */
/* than the actual channel pointer in when we pass it to the other */
/* side of the connection. */
prot_request->channel=(SPC_Channel_Ptr)(channel ? channel->cid : 0);
prot_request->channel=(SPC_Channel_Ptr) (intptr_t) (channel ? channel->cid : 0);
switch (request) {

View File

@@ -36,6 +36,7 @@
#include <bms/sbport.h> /* NOTE: sbport.h must be the first include. */
#include <signal.h>
#include <stdint.h>
#include <bms/bms.h>
#include <bms/Symbolic.h>
@@ -50,7 +51,7 @@ static void Xe_addsig(XeString name, int value)
/*-------------------------------------------------------------------------+*/
{
XeSymbol sym = Xe_intern(Xe_sig_table, name);
sym->value = (void *)value;
sym->value = (void *) (intptr_t) value;
}
/*-------------------------------------------------------------------------+*/
@@ -162,7 +163,7 @@ int XeNameToSignal(XeString name)
sym = Xe_lookup(Xe_sig_table, name);
_DtSvcProcessUnlock();
return (sym) ? (int) sym->value : XE_SIG_NOT_IN_TABLE;
return (sym) ? (intptr_t) sym->value : XE_SIG_NOT_IN_TABLE;
}
/*-------------------------------------------------------------------------+*/