Skip to content

Commit 558cbbb

Browse files
committed
fix compiler warning
1 parent f075ea3 commit 558cbbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ "name": "pg",
2-
"version": "0.6.0",
2+
"version": "0.6.1",
33
"description": "PostgreSQL client - pure javascript & libpq with the same API",
44
"keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"],
55
"homepage": "http://github.com/brianc/node-postgres",

src/binding.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -497,13 +497,13 @@ class Connection : public ObjectWrap {
497497

498498
private:
499499
//EventEmitter was removed from c++ in node v0.5.x
500-
void Emit(char* message) {
500+
void Emit(const char* message) {
501501
HandleScope scope;
502502
Handle<Value> args[1] = { String::New(message) };
503503
Emit(1, args);
504504
}
505505

506-
void Emit(char* message, Handle<Value>* arg) {
506+
void Emit(const char* message, Handle<Value>* arg) {
507507
HandleScope scope;
508508
Handle<Value> args[2] = { String::New(message), *arg };
509509
Emit(2, args);

0 commit comments

Comments
 (0)