diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-09 17:24:16 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-09 17:24:16 -0700 |
commit | 95cb4dcd618774b3f7b5b915c5ce5aa72f853b53 (patch) | |
tree | 5855871af9beca9549fe978bac71434e53f3828f /src/sm_client.c | |
parent | 5a06ff257f72a629539f23b35026fbcdb8bb372e (diff) |
Fix some clang warnings about integer size/sign conversions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/sm_client.c')
-rw-r--r-- | src/sm_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sm_client.c b/src/sm_client.c index ef1160b..7d00961 100644 --- a/src/sm_client.c +++ b/src/sm_client.c @@ -65,7 +65,7 @@ SmcOpenConnection(char *networkIdsList, SmPointer context, char *release = NULL; smRegisterClientMsg *pMsg; char *pData; - int extra, len; + unsigned int extra, len; IceReplyWaitInfo replyWait; _SmcRegisterClientReply reply; Bool gotReply, ioErrorOccured; @@ -296,7 +296,7 @@ SmcCloseConnection(SmcConn smcConn, int count, char **reasonMsgs) SIZEOF (smCloseConnectionMsg), WORD64COUNT (extra), smCloseConnectionMsg, pMsg, pData); - STORE_CARD32 (pData, count); + STORE_CARD32 (pData, (CARD32) count); pData += 4; for (i = 0; i < count; i++) @@ -360,7 +360,7 @@ SmcSetProperties(SmcConn smcConn, int numProps, SmProp **props) smSetPropertiesMsg *pMsg; char *pBuf; char *pStart; - int bytes; + unsigned int bytes; IceGetHeader (iceConn, _SmcOpcode, SM_SetProperties, SIZEOF (smSetPropertiesMsg), smSetPropertiesMsg, pMsg); |