mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
process.c: constant expression
* process.c (rb_exec_async_signal_safe): use a constant expression instead of a macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
52d85c1014
commit
47c6131b29
1 changed files with 2 additions and 4 deletions
|
@ -2855,9 +2855,9 @@ int
|
|||
rb_exec_async_signal_safe(const struct rb_execarg *e, char *errmsg, size_t errmsg_buflen)
|
||||
{
|
||||
#if !defined(HAVE_FORK)
|
||||
struct rb_execarg sarg, *sargp = &sarg;
|
||||
struct rb_execarg sarg, *const sargp = &sarg;
|
||||
#else
|
||||
# define sargp NULL
|
||||
struct rb_execarg *const sargp = NULL;
|
||||
#endif
|
||||
|
||||
before_exec_async_signal_safe(); /* async-signal-safe */
|
||||
|
@ -2877,8 +2877,6 @@ rb_exec_async_signal_safe(const struct rb_execarg *e, char *errmsg, size_t errms
|
|||
}
|
||||
#if !defined(HAVE_FORK)
|
||||
preserving_errno(rb_execarg_run_options(sargp, NULL, errmsg, errmsg_buflen));
|
||||
#else
|
||||
# undef sargp
|
||||
#endif
|
||||
|
||||
failure:
|
||||
|
|
Loading…
Add table
Reference in a new issue