emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] test-concurrency 7399f53: Fix compilation warnings due to


From: Eli Zaretskii
Subject: [Emacs-diffs] test-concurrency 7399f53: Fix compilation warnings due to prototype of thread_select
Date: Fri, 9 Dec 2016 16:23:57 +0000 (UTC)

branch: test-concurrency
commit 7399f53a3706c8cb6ce27f7fe51fb5dc79e39bc1
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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'.
---
 src/process.c |    2 +-
 src/thread.h  |    2 +-
 src/w32.c     |    2 +-
 src/w32proc.c |    4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/process.c b/src/process.c
index 7d3cf19..a60814b 100644
--- a/src/process.c
+++ b/src/process.c
@@ -138,7 +138,7 @@ static struct rlimit nofile_limit;
 
 #ifdef WINDOWSNT
 extern int sys_select (int, fd_set *, fd_set *, fd_set *,
-                       struct timespec *, sigset_t *);
+                       const struct timespec *, const sigset_t *);
 #endif
 
 /* Work around GCC 4.3.0 bug with strict overflow checking; see
diff --git a/src/thread.h b/src/thread.h
index 6444800..a9de754 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -226,7 +226,7 @@ extern void init_threads (void);
 extern void syms_of_threads (void);
 
 typedef int select_func (int, fd_set *, fd_set *, fd_set *,
-                        struct timespec *, sigset_t *);
+                        const struct timespec *, const sigset_t *);
 
 int thread_select  (select_func *func, int max_fds, fd_set *rfds,
                    fd_set *wfds, fd_set *efds, struct timespec *timeout,
diff --git a/src/w32.c b/src/w32.c
index 7a80275..c6fc7ef 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -272,7 +272,7 @@ static BOOL WINAPI revert_to_self (void);
 static int sys_access (const char *, int);
 extern void *e_malloc (size_t);
 extern int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *,
-                      struct timespec *, sigset_t *);
+                      const struct timespec *, const sigset_t *);
 extern int sys_dup (int);
 
 
diff --git a/src/w32proc.c b/src/w32proc.c
index 3ff52c3..6f3a6e0 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -72,7 +72,7 @@ extern BOOL g_b_init_compare_string_w;
 extern BOOL g_b_init_debug_break_process;
 
 int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *,
-               struct timespec *, sigset_t *);
+               const struct timespec *, const sigset_t *);
 
 /* Signal handlers...SIG_DFL == 0 so this is initialized correctly.  */
 static signal_handler sig_handlers[NSIG];
@@ -2096,7 +2096,7 @@ extern int proc_buffered_char[];
 
 int
 sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds,
-           struct timespec *timeout, sigset_t *ignored)
+           const struct timespec *timeout, const sigset_t *ignored)
 {
   SELECT_TYPE orfds, owfds;
   DWORD timeout_ms, start_time;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]