Skip to content

Commit 582a005

Browse files
committed
Merge branch 'master' of github.com:LearnBoost/node-canvas
2 parents 10da42f + 530266d commit 582a005

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Canvas.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ toBuffer(void *c, const uint8_t *data, unsigned len) {
133133
* EIO toBuffer callback.
134134
*/
135135

136-
int
136+
void
137137
Canvas::EIO_ToBuffer(eio_req *req) {
138138
closure_t *closure = (closure_t *) req->data;
139139

@@ -142,7 +142,6 @@ Canvas::EIO_ToBuffer(eio_req *req) {
142142
, toBuffer
143143
, closure);
144144

145-
return 0;
146145
}
147146

148147
/*

src/Canvas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Canvas: public node::ObjectWrap {
4343
static void SetHeight(Local<String> prop, Local<Value> val, const AccessorInfo &info);
4444
static Handle<Value> StreamPNGSync(const Arguments &args);
4545
static Local<Value> Error(cairo_status_t status);
46-
static int EIO_ToBuffer(eio_req *req);
46+
static void EIO_ToBuffer(eio_req *req);
4747
static int EIO_AfterToBuffer(eio_req *req);
4848
inline cairo_surface_t *surface(){ return _surface; }
4949
inline uint8_t *data(){ return cairo_image_surface_get_data(_surface); }

0 commit comments

Comments
 (0)