Permalink
Browse files

Merge pull request #20 from Flameeyes/master

Code cleanup by Diego Elio Pettenò
  • Loading branch information...
2 parents c2ba858 + 164dabf commit 0f2bc3ccb490b0f4f99de6384987b4d00e1697b8 @ph7 committed Jan 6, 2012
Showing with 6 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +5 −5 ext/system_timer/system_timer_native.c
View
1 .gitignore
@@ -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
View
10 ext/system_timer/system_timer_native.c
@@ -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();

0 comments on commit 0f2bc3c

Please sign in to comment.