0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-10-21 19:54:04 -04:00

[long] long -> intptr_t . Refs #8304

AFAIK on Windows long is sizeof 4, while void * is sizeof 8.
intptr_t is the same sizeof as void *.
This commit is contained in:
Witold Filipczyk
2022-08-17 20:48:58 +02:00
parent 9ed288c717
commit 361b8f661d
13 changed files with 72 additions and 27 deletions

View File

@@ -5,6 +5,10 @@
#include "config.h"
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -172,7 +176,7 @@ add_session_info(struct session *ses, struct uri *uri, struct uri *referrer,
* but it won't hurt to have a few seconds atleast. --jonas */
install_timer(&info->timer, (milliseconds_T) 10000,
(void (*)(void *)) session_info_timeout,
(void *) (long) info->id);
(void *) (intptr_t) info->id);
info->ses = ses;
info->task = task;