mirror of https://github.com/FreeRDP/FreeRDP
[emu,scard] silence sign warnings
This commit is contained in:
parent
16a78e07dd
commit
148063e638
|
@ -292,7 +292,7 @@ create_failed:
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static BOOL vgids_write_tlv(wStream* s, UINT16 tag, const char* data, DWORD dataSize)
|
||||
static BOOL vgids_write_tlv(wStream* s, UINT16 tag, const void* data, DWORD dataSize)
|
||||
{
|
||||
/* A maximum of 5 additional bytes is needed */
|
||||
if (!Stream_EnsureRemainingCapacity(s, dataSize + 5))
|
||||
|
@ -326,7 +326,7 @@ static BOOL vgids_write_tlv(wStream* s, UINT16 tag, const char* data, DWORD data
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static BOOL vgids_ef_write_do(vgidsEF* ef, UINT16 doID, const char* data, DWORD dataSize)
|
||||
static BOOL vgids_ef_write_do(vgidsEF* ef, UINT16 doID, const void* data, DWORD dataSize)
|
||||
{
|
||||
/* Write DO to end of file: 2-Byte ID, 1-Byte Len, Data */
|
||||
return vgids_write_tlv(ef->data, doID, data, dataSize);
|
||||
|
@ -1507,7 +1507,7 @@ BOOL vgids_init(vgidsContext* ctx, const char* cert, const char* privateKey, con
|
|||
goto init_failed;
|
||||
|
||||
cmrec.wKeyExchangeKeySizeBits = (WORD)size * 8;
|
||||
if (!vgids_ef_write_do(commonEF, VGIDS_DO_CMAPFILE, (BYTE*)&cmrec, sizeof(cmrec)))
|
||||
if (!vgids_ef_write_do(commonEF, VGIDS_DO_CMAPFILE, &cmrec, sizeof(cmrec)))
|
||||
goto init_failed;
|
||||
|
||||
/* write cardapps DO */
|
||||
|
|
Loading…
Reference in New Issue