Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #20 from Flameeyes/master

Code cleanup by Diego Elio Pettenò
  • Loading branch information...
commit 0f2bc3ccb490b0f4f99de6384987b4d00e1697b8 2 parents c2ba858 + 164dabf
Philippe Hanrigou authored
Showing with 6 additions and 5 deletions.
  1. +1 −0  .gitignore
  2. +5 −5 ext/system_timer/system_timer_native.c
1  .gitignore
View
@@ -1,5 +1,6 @@
ext/system_timer/Makefile
ext/system_timer/system_timer_native.bundle
ext/system_timer/system_timer_native.o
+ext/system_timer/system_timer_native.so
rdoc
pkg
10 ext/system_timer/system_timer_native.c
View
@@ -15,15 +15,15 @@
#define MICRO_SECONDS 1000000.0
#define MINIMUM_TIMER_INTERVAL_IN_SECONDS 0.2
-VALUE rb_cSystemTimer;
+static VALUE rb_cSystemTimer;
// Ignore most of this for Rubinius
#ifndef RUBINIUS
-sigset_t original_mask;
-sigset_t sigalarm_mask;
-struct sigaction original_signal_handler;
-struct itimerval original_timer_interval;
+static sigset_t original_mask;
+static sigset_t sigalarm_mask;
+static struct sigaction original_signal_handler;
+static struct itimerval original_timer_interval;
static int debug_enabled = 0;
static void clear_pending_sigalrm_for_ruby_threads();
Please sign in to comment.
Something went wrong with that request. Please try again.