diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-22 03:07:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-22 03:07:26 +0000 |
commit | 47c6131b2987fe6158ebca009746a88e3c1b6a77 (patch) | |
tree | 0c962b4f6c78d1a90ed6ca1eb7fca61ebeb62969 /process.c | |
parent | 52d85c10144bc9b09987b21f9a2523c4b78b2684 (diff) | |
download | ruby-47c6131b2987fe6158ebca009746a88e3c1b6a77.tar.gz |
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
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 6 |
1 files changed, 2 insertions, 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: |