Permalink
Browse files

Fixed the 'invalid conversion from ‘void (*)(uv_work_t*, int) {aka vo…

…id (*)(uv_work_s*, int)}’ to ‘uv_after_work_cb {aka void (*)(uv_work_s*)}’ compile errors for node 0.8
  • Loading branch information...
Damian Beresford Damian Beresford
Damian Beresford authored and Damian Beresford committed May 3, 2013
1 parent 2507645 commit ee867d8193702e29ab40563cad2d66c45c042201
Showing with 4 additions and 4 deletions.
  1. +3 −3 exiv2node.cc
  2. +1 −1 package.json
View
@@ -124,7 +124,7 @@ static Handle<Value> GetImageTags(const Arguments& args) {
// Set up our thread data struct, pass off to the libuv thread pool.
Baton *thread_data = new Baton(Local<String>::Cast(args[0]), Local<Function>::Cast(args[1]));
- int status = uv_queue_work(uv_default_loop(), &thread_data->request, GetImageTagsWorker, AfterGetImageTags);
+ int status = uv_queue_work(uv_default_loop(), &thread_data->request, GetImageTagsWorker, (uv_after_work_cb)AfterGetImageTags);
assert(status == 0);
return Undefined();
@@ -214,7 +214,7 @@ static Handle<Value> SetImageTags(const Arguments& args) {
);
}
- int status = uv_queue_work(uv_default_loop(), &thread_data->request, SetImageTagsWorker, AfterSetImageTags);
+ int status = uv_queue_work(uv_default_loop(), &thread_data->request, SetImageTagsWorker, (uv_after_work_cb)AfterSetImageTags);
assert(status == 0);
return Undefined();
@@ -288,7 +288,7 @@ static Handle<Value> GetImagePreviews(const Arguments& args) {
// Set up our thread data struct, pass off to the libuv thread pool.
GetPreviewBaton *thread_data = new GetPreviewBaton(Local<String>::Cast(args[0]), Local<Function>::Cast(args[1]));
- int status = uv_queue_work(uv_default_loop(), &thread_data->request, GetImagePreviewsWorker, AfterGetImagePreviews);
+ int status = uv_queue_work(uv_default_loop(), &thread_data->request, GetImagePreviewsWorker, (uv_after_work_cb)AfterGetImagePreviews);
assert(status == 0);
return Undefined();
View
@@ -2,7 +2,7 @@
"author": "Damian Beresford <dberesford@gmail.com> (http://www.damianberesford.com/)",
"name": "exiv2",
"description": "A native c++ extension for node.js that provides support for reading & writing image metadata via Exiv2.",
- "version": "0.4.1",
+ "version": "0.4.2",
"homepage": "https://github.com/dberesford/exiv2node",
"repository": {
"type": "git",

0 comments on commit ee867d8

Please sign in to comment.