From f9883d97b3a586663f85075206fe7e07b41ed366 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 3 Apr 2018 16:56:45 +0300 Subject: unneeded size fields removed --- include/delphi/m_protocols.inc | 3 --- include/m_protocols.h | 7 +++---- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/delphi/m_protocols.inc b/include/delphi/m_protocols.inc index c4038e9600..76796c06ed 100644 --- a/include/delphi/m_protocols.inc +++ b/include/delphi/m_protocols.inc @@ -47,7 +47,6 @@ type type PACKDATA = ^TACKDATA; TACKDATA = record - cbSize : int; szModule: PAnsiChar; // the name of the protocol module which initiated this ack hContact: TMCONTACT; _type : int; // an ACKTYPE_* constant @@ -119,7 +118,6 @@ type // especially for Miranda 9.0+ PPROTOFILETRANSFERSTATUS = ^TPROTOFILETRANSFERSTATUS; TPROTOFILETRANSFERSTATUS = record - cbSize : size_t; hContact : TMCONTACT; flags : dword; // one of PFTS_* constants files : ^TCHAR; @@ -241,7 +239,6 @@ type PPROTOACCOUNT = ^TPROTOACCOUNT; PPPROTOACCOUNT = ^PPROTOACCOUNT; TPROTOACCOUNT = record - cbSize :int; // sizeof this structure szModuleName :PAnsiChar; // unique physical account name (matches database module name) tszAccountName :TChar; // user-defined account name szProtoName :PAnsiChar; // physical protocol name diff --git a/include/m_protocols.h b/include/m_protocols.h index 55b2b28cc0..3aaf125906 100644 --- a/include/m_protocols.h +++ b/include/m_protocols.h @@ -34,12 +34,13 @@ struct PROTO_INTERFACE; #include #include -typedef struct { +struct CCSDATA +{ MCONTACT hContact; const char *szProtoService; // a PS_ constant WPARAM wParam; LPARAM lParam; -} CCSDATA; +}; ///////////////////////////////////////////////////////////////////////////////////////// // a general network 'ack' @@ -85,7 +86,6 @@ typedef struct { struct ACKDATA { - int cbSize; const char *szModule; // the name of the protocol module which initiated this ack MCONTACT hContact; int type; // an ACKTYPE_ constant @@ -111,7 +111,6 @@ struct ACKDATA struct PROTOFILETRANSFERSTATUS { - size_t cbSize; MCONTACT hContact; DWORD flags; // one of PFTS_* constants MAllStringArray pszFiles; -- cgit v1.2.3