From 6e6a9b2c46afcc3c6dd0b95082acd0f98cd40eb7 Mon Sep 17 00:00:00 2001 From: Ion Lupascu Date: Wed, 12 Oct 2011 23:06:42 +0300 Subject: [PATCH] Corrected code with node 0.5.9 Signed-off-by: Ion Lupascu --- include/blob.h | 2 +- include/commit.h | 2 +- include/reference.h | 2 +- include/repo.h | 4 ++-- include/revwalk.h | 2 +- include/tree.h | 4 ++-- src/blob.cc | 4 ++-- src/commit.cc | 4 ++-- src/reference.cc | 4 ++-- src/repo.cc | 8 ++++---- src/revwalk.cc | 4 ++-- src/tree.cc | 8 ++++---- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/include/blob.h b/include/blob.h index 5e7243c7b..34ed78b08 100755 --- a/include/blob.h +++ b/include/blob.h @@ -137,7 +137,7 @@ class GitBlob : public ObjectWrap { * Returns: * completion code integer */ - static int EIO_Lookup(eio_req* req); + static void EIO_Lookup(eio_req* req); /** * Function: EIO_AfterLookup * diff --git a/include/commit.h b/include/commit.h index e11c2cf4d..5fff9cf1b 100755 --- a/include/commit.h +++ b/include/commit.h @@ -59,7 +59,7 @@ class GitCommit : public EventEmitter { static Handle New(const Arguments& args); static Handle Lookup(const Arguments& args); - static int EIO_Lookup(eio_req *req); + static void EIO_Lookup(eio_req *req); static int EIO_AfterLookup(eio_req *req); static Handle Close(const Arguments& args); diff --git a/include/reference.h b/include/reference.h index ea47c1315..b669b950f 100755 --- a/include/reference.h +++ b/include/reference.h @@ -33,7 +33,7 @@ class GitReference : public EventEmitter { static Handle New(const Arguments& args); static Handle Lookup(const Arguments& args); - static int EIO_Lookup(eio_req* req); + static void EIO_Lookup(eio_req* req); static int EIO_AfterLookup(eio_req* req); static Handle Oid(const Arguments& args); diff --git a/include/repo.h b/include/repo.h index 620877a2a..b153f60e2 100755 --- a/include/repo.h +++ b/include/repo.h @@ -43,7 +43,7 @@ class GitRepo : public EventEmitter { static Handle New(const Arguments& args); static Handle Open(const Arguments& args); - static int EIO_Open(eio_req* req); + static void EIO_Open(eio_req* req); static int EIO_AfterOpen(eio_req* req); static Handle Lookup(const Arguments& args); @@ -53,7 +53,7 @@ class GitRepo : public EventEmitter { static Handle Free(const Arguments& args); static Handle Init(const Arguments& args); - static int EIO_Init(eio_req* req); + static void EIO_Init(eio_req* req); static int EIO_AfterInit(eio_req* req); private: diff --git a/include/revwalk.h b/include/revwalk.h index 0a86ae222..ca0cbfb46 100755 --- a/include/revwalk.h +++ b/include/revwalk.h @@ -42,7 +42,7 @@ class GitRevWalk : public EventEmitter { static Handle Hide(const Arguments& args); static Handle Next(const Arguments& args); - static int EIO_Next(eio_req* req); + static void EIO_Next(eio_req* req); static int EIO_AfterNext(eio_req* req); static Handle Sorting(const Arguments& args); diff --git a/include/tree.h b/include/tree.h index 696d46351..59df855fa 100755 --- a/include/tree.h +++ b/include/tree.h @@ -98,10 +98,10 @@ class GitTree : public EventEmitter { static int EIO_AfterLookup(eio_req *req); static Handle EntryCount(const Arguments& args); static Handle EntryByIndex(const Arguments& args); - static int EIO_EntryByIndex(eio_req *req); + static void EIO_EntryByIndex(eio_req *req); static int EIO_AfterEntryByIndex(eio_req *req); static Handle EntryByName(const Arguments& args); - static int EIO_EntryByName(eio_req *req); + static void EIO_EntryByName(eio_req *req); static int EIO_AfterEntryByName(eio_req *req); static Handle SortEntries(const Arguments& args); static Handle ClearEntries(const Arguments& args); diff --git a/src/blob.cc b/src/blob.cc index 4b58f173f..6ff80693f 100755 --- a/src/blob.cc +++ b/src/blob.cc @@ -111,13 +111,13 @@ Handle GitBlob::Lookup(const Arguments& args) { return scope.Close( Undefined() ); } -int GitBlob::EIO_Lookup(eio_req* req) { +void GitBlob::EIO_Lookup(eio_req* req) { lookup_request* ar = static_cast(req->data); git_oid oid = ar->oid->GetValue(); ar->err = ar->blob->Lookup(ar->repo->GetValue(), &oid); - return 0; + return; } int GitBlob::EIO_AfterLookup(eio_req* req) { diff --git a/src/commit.cc b/src/commit.cc index d7ec943ef..3e2a9db75 100755 --- a/src/commit.cc +++ b/src/commit.cc @@ -146,13 +146,13 @@ Handle GitCommit::Lookup(const Arguments& args) { return scope.Close( Undefined() ); } -int GitCommit::EIO_Lookup(eio_req *req) { +void GitCommit::EIO_Lookup(eio_req *req) { lookup_request *ar = static_cast(req->data); git_oid oid = ar->oid->GetValue(); ar->err = ar->commit->Lookup(ar->repo->GetValue(), &oid); - return 0; + return; } int GitCommit::EIO_AfterLookup(eio_req *req) { diff --git a/src/reference.cc b/src/reference.cc index ab37f871f..b1d278451 100755 --- a/src/reference.cc +++ b/src/reference.cc @@ -94,14 +94,14 @@ Handle GitReference::Lookup(const Arguments& args) { return scope.Close( Undefined() ); } -int GitReference::EIO_Lookup(eio_req *req) { +void GitReference::EIO_Lookup(eio_req *req) { lookup_request *ar = static_cast(req->data); git_repository* repo = ar->repo->GetValue(); ar->err = ar->ref->Lookup(repo, ar->name.c_str()); - return 0; + return; } int GitReference::EIO_AfterLookup(eio_req *req) { diff --git a/src/repo.cc b/src/repo.cc index d288ef612..13e0dc1b0 100755 --- a/src/repo.cc +++ b/src/repo.cc @@ -101,12 +101,12 @@ Handle GitRepo::Open(const Arguments& args) { return scope.Close( Undefined() ); } -int GitRepo::EIO_Open(eio_req *req) { +void GitRepo::EIO_Open(eio_req *req) { open_request *ar = static_cast(req->data); ar->err = ar->repo->Open(ar->path.c_str()); - return 0; + return; } int GitRepo::EIO_AfterOpen(eio_req *req) { @@ -258,12 +258,12 @@ Handle GitRepo::Init(const Arguments& args) { return scope.Close( Undefined() ); } -int GitRepo::EIO_Init(eio_req *req) { +void GitRepo::EIO_Init(eio_req *req) { init_request *ar = static_cast(req->data); ar->err = ar->repo->Init(ar->path.c_str(), ar->is_bare); - return 0; + return; } int GitRepo::EIO_AfterInit(eio_req *req) { diff --git a/src/revwalk.cc b/src/revwalk.cc index 3cc8f4738..f7a73c0f3 100755 --- a/src/revwalk.cc +++ b/src/revwalk.cc @@ -156,14 +156,14 @@ Handle GitRevWalk::Next(const Arguments& args) { return scope.Close( Undefined() ); } -int GitRevWalk::EIO_Next(eio_req *req) { +void GitRevWalk::EIO_Next(eio_req *req) { next_request *ar = static_cast(req->data); git_oid oid = ar->oid->GetValue(); ar->err = ar->revwalk->Next(&oid); ar->oid->SetValue(oid); - return 0; + return; } int GitRevWalk::EIO_AfterNext(eio_req *req) { diff --git a/src/tree.cc b/src/tree.cc index be1047173..5311f8f39 100755 --- a/src/tree.cc +++ b/src/tree.cc @@ -190,12 +190,12 @@ Handle GitTree::EntryByIndex(const Arguments& args) { return scope.Close( Undefined() ); } -int GitTree::EIO_EntryByIndex(eio_req *req) { +void GitTree::EIO_EntryByIndex(eio_req *req) { entryindex_request *er = static_cast(req->data); er->entry->SetValue(er->tree->EntryByIndex(er->idx)); - return 0; + return; } int GitTree::EIO_AfterEntryByIndex(eio_req *req) { @@ -256,12 +256,12 @@ Handle GitTree::EntryByName(const Arguments& args) { return scope.Close( Undefined() ); } -int GitTree::EIO_EntryByName(eio_req *req) { +void GitTree::EIO_EntryByName(eio_req *req) { entryname_request *er = static_cast(req->data); er->entry->SetValue(er->tree->EntryByName(er->name.c_str())); - return 0; + return; } int GitTree::EIO_AfterEntryByName(eio_req *req) {