}
int toReturn = getSimpleReply();
+ if (toReturn == -1) toReturn = 0; // error is same as 0=bad in this case
pthread_mutex_unlock(&mutex);
return toReturn;
}
}
int toReturn = getSimpleReply();
+ if (toReturn == -1) toReturn = 0; // change error to bad
pthread_mutex_unlock(&mutex);
return toReturn;
}
}
int toReturn = getSimpleReply();
+ if (toReturn == -1) toReturn = 0; // change error to bad
pthread_mutex_unlock(&mutex);
return toReturn;
}
}
int toReturn = getSimpleReply();
+ if (toReturn == -1) toReturn = 0; // change error to bad
pthread_mutex_unlock(&mutex);
return toReturn;
}