Skip to content

Commit

Permalink
BUGFIX wrong type used
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Mar 8, 2016
1 parent c234ff1 commit 37ff8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datastore.c
Original file line number Diff line number Diff line change
Expand Up @@ -3755,7 +3755,7 @@ static int ncds_update_callbacks(struct ncds_ds* ds)
static void transapi_unload(struct transapi_internal* tapi)
{
/* stop the thread monitoring the files */
if (tapi->file_clbks != NULL && tapi->file_clbks->callbacks_count > 0 && tapi->fmon_thread != NULL) {
if (tapi->file_clbks != NULL && tapi->file_clbks->callbacks_count > 0 && tapi->fmon_thread != 0) {
VERB("Stopping FMON thread.");
if (pthread_kill(tapi->fmon_thread, 9) != 0) {
/* sleep some more */
Expand Down

0 comments on commit 37ff8ef

Please sign in to comment.