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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user