Skip to content

Commit 273604d

Browse files
committed
Avoid compiler warnings in addpm.c and ddeclient.c
* nt/ddeclient.c (DdeCallback): * nt/addpm.c (DdeCallback): Modify types of the last 2 arguments to avoid compiler warnings in 64-bit builds. (Bug#38040)
1 parent 4e44402 commit 273604d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

nt/addpm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
5656
#include "../src/epaths.h"
5757
#endif
5858

59-
HDDEDATA CALLBACK DdeCallback (UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, DWORD,
60-
DWORD);
59+
HDDEDATA CALLBACK DdeCallback (UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, DWORD_PTR,
60+
DWORD_PTR);
6161

6262
HDDEDATA CALLBACK
6363
DdeCallback (UINT uType, UINT uFmt, HCONV hconv,
6464
HSZ hsz1, HSZ hsz2, HDDEDATA hdata,
65-
DWORD dwData1, DWORD dwData2)
65+
DWORD_PTR dwData1, DWORD_PTR dwData2)
6666
{
6767
return ((HDDEDATA) NULL);
6868
}

nt/ddeclient.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
2121
#include <stdlib.h>
2222
#include <stdio.h>
2323

24-
HDDEDATA CALLBACK DdeCallback (UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, DWORD,
25-
DWORD);
24+
HDDEDATA CALLBACK DdeCallback (UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, DWORD_PTR,
25+
DWORD_PTR);
2626

2727
HDDEDATA CALLBACK
2828
DdeCallback (UINT uType, UINT uFmt, HCONV hconv,
2929
HSZ hsz1, HSZ hsz2, HDDEDATA hdata,
30-
DWORD dwData1, DWORD dwData2)
30+
DWORD_PTR dwData1, DWORD_PTR dwData2)
3131
{
3232
return ((HDDEDATA) NULL);
3333
}

0 commit comments

Comments
 (0)