Skip to content

Commit

Permalink
unix, windows: uv_dlerror const argument
Browse files Browse the repository at this point in the history
  • Loading branch information
zerhacken authored and saghul committed May 12, 2014
1 parent f629075 commit ecaede6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/uv.h
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ UV_EXTERN int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr);
/*
* Returns the last uv_dlopen() or uv_dlsym() error message.
*/
UV_EXTERN const char* uv_dlerror(uv_lib_t* lib);
UV_EXTERN const char* uv_dlerror(const uv_lib_t* lib);

/*
* The mutex functions return 0 on success or an error code < 0
Expand Down
2 changes: 1 addition & 1 deletion src/unix/dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr) {
}


const char* uv_dlerror(uv_lib_t* lib) {
const char* uv_dlerror(const uv_lib_t* lib) {
return lib->errmsg ? lib->errmsg : "no error";
}

Expand Down
2 changes: 1 addition & 1 deletion src/win/dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr) {
}


const char* uv_dlerror(uv_lib_t* lib) {
const char* uv_dlerror(const uv_lib_t* lib) {
return lib->errmsg ? lib->errmsg : "no error";
}

Expand Down

0 comments on commit ecaede6

Please sign in to comment.