Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

node v0.9.4+ compatibility

  • Loading branch information...
commit fba6f4169eaa9959d582aff32cbecdea438ef0da 1 parent 6fca1f7
@mscdex authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 src/magic.cc
View
12 src/magic.cc
@@ -127,8 +127,10 @@ class Magic : public ObjectWrap {
baton->path = obj->mpath;
baton->flags = obj->mflags;
- int status = uv_queue_work(uv_default_loop(), &baton->request,
- Magic::DetectWork, Magic::DetectAfter);
+ int status = uv_queue_work(uv_default_loop(),
+ &baton->request,
+ Magic::DetectWork,
+ (uv_after_work_cb)Magic::DetectAfter);
assert(status == 0);
return Undefined();
@@ -165,8 +167,10 @@ class Magic : public ObjectWrap {
baton->path = obj->mpath;
baton->flags = obj->mflags;
- int status = uv_queue_work(uv_default_loop(), &baton->request,
- Magic::DetectWork, Magic::DetectAfter);
+ int status = uv_queue_work(uv_default_loop(),
+ &baton->request,
+ Magic::DetectWork,
+ (uv_after_work_cb)Magic::DetectAfter);
assert(status == 0);
return Undefined();
Please sign in to comment.
Something went wrong with that request. Please try again.