mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Changed function signatures (K&R style) to remove warnings when compiling with VC2003.
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@450 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
f484a356c9
commit
0bd56fb47c
1 changed files with 5 additions and 9 deletions
|
@ -221,9 +221,8 @@ init_mutex(mutex)
|
||||||
init_list(&mutex->waiting);
|
init_list(&mutex->waiting);
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_mutex_alloc(klass)
|
rb_mutex_alloc(VALUE klass)
|
||||||
VALUE klass;
|
|
||||||
{
|
{
|
||||||
Mutex *mutex;
|
Mutex *mutex;
|
||||||
mutex = (Mutex *)malloc(sizeof(Mutex));
|
mutex = (Mutex *)malloc(sizeof(Mutex));
|
||||||
|
@ -468,8 +467,7 @@ init_condvar(condvar)
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_condvar_alloc(klass)
|
rb_condvar_alloc(VALUE klass)
|
||||||
VALUE klass;
|
|
||||||
{
|
{
|
||||||
ConditionVariable *condvar;
|
ConditionVariable *condvar;
|
||||||
|
|
||||||
|
@ -596,8 +594,7 @@ init_queue(queue)
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_queue_alloc(klass)
|
rb_queue_alloc(VALUE klass)
|
||||||
VALUE klass;
|
|
||||||
{
|
{
|
||||||
Queue *queue;
|
Queue *queue;
|
||||||
queue = (Queue *)malloc(sizeof(Queue));
|
queue = (Queue *)malloc(sizeof(Queue));
|
||||||
|
@ -738,8 +735,7 @@ free_sized_queue(queue)
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_sized_queue_alloc(klass)
|
rb_sized_queue_alloc(VALUE klass)
|
||||||
VALUE klass;
|
|
||||||
{
|
{
|
||||||
SizedQueue *queue;
|
SizedQueue *queue;
|
||||||
queue = (SizedQueue *)malloc(sizeof(SizedQueue));
|
queue = (SizedQueue *)malloc(sizeof(SizedQueue));
|
||||||
|
|
Loading…
Add table
Reference in a new issue