aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32proc.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-12-09 18:23:04 +0200
committerEli Zaretskii2016-12-09 18:23:04 +0200
commit7399f53a3706c8cb6ce27f7fe51fb5dc79e39bc1 (patch)
tree88e4212341ca08f9da3d8c1ea71cf033c11b1324 /src/w32proc.c
parentae490069eafa68356405fc9719910a4c533f14ea (diff)
downloademacs-7399f53a3706c8cb6ce27f7fe51fb5dc79e39bc1.tar.gz
emacs-7399f53a3706c8cb6ce27f7fe51fb5dc79e39bc1.zip
Fix compilation warnings due to prototype of thread_select
* src/thread.h <int select_func>: Make the 5th and 6th arguments be 'const'. * src/process.c [WINDOWSNT]: * src/w32proc.c: Make the 5th and 6th argument to sys_select be 'const'.
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 3ff52c37fbd..6f3a6e0efca 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -72,7 +72,7 @@ extern BOOL g_b_init_compare_string_w;
72extern BOOL g_b_init_debug_break_process; 72extern BOOL g_b_init_debug_break_process;
73 73
74int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *, 74int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *,
75 struct timespec *, sigset_t *); 75 const struct timespec *, const sigset_t *);
76 76
77/* Signal handlers...SIG_DFL == 0 so this is initialized correctly. */ 77/* Signal handlers...SIG_DFL == 0 so this is initialized correctly. */
78static signal_handler sig_handlers[NSIG]; 78static signal_handler sig_handlers[NSIG];
@@ -2096,7 +2096,7 @@ extern int proc_buffered_char[];
2096 2096
2097int 2097int
2098sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, 2098sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds,
2099 struct timespec *timeout, sigset_t *ignored) 2099 const struct timespec *timeout, const sigset_t *ignored)
2100{ 2100{
2101 SELECT_TYPE orfds, owfds; 2101 SELECT_TYPE orfds, owfds;
2102 DWORD timeout_ms, start_time; 2102 DWORD timeout_ms, start_time;