mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix a couple of minor nits that prevented this from compiling.
Pointed out by: julian
This commit is contained in:
parent
cfbd984f1c
commit
c3d580c9a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99239
|
@ -165,7 +165,7 @@ static pthread_mutex_t waiter_mutex;
|
|||
static pthread_mutex_t cond_mutex;
|
||||
static pthread_cond_t cond_var;
|
||||
|
||||
static FILE *logfile = stdout;
|
||||
static FILE *logfile;
|
||||
static int error_count = 0, pass_count = 0, total = 0;
|
||||
|
||||
|
||||
|
@ -354,7 +354,7 @@ waiter (void *arg)
|
|||
/* Do we report our status? */
|
||||
if (statep->flags & FLAGS_REPORT_WAITCONDVAR) {
|
||||
write (pipefd[1], &statep->id, sizeof (statep->id));
|
||||
log_trace ("Thread %d: wrote %d to pipe.\n",
|
||||
log_trace ("Thread %d: wrote to pipe.\n",
|
||||
(int) statep->id);
|
||||
}
|
||||
log_trace ("Thread %d: received cond_var signal.\n",
|
||||
|
@ -1438,6 +1438,8 @@ int main (int argc, char *argv[])
|
|||
struct sigaction act;
|
||||
struct sched_param param;
|
||||
|
||||
logfile = stdout;
|
||||
|
||||
assert (pthread_getschedparam (pthread_self (), &policy, ¶m) == 0);
|
||||
main_prio = param.sched_priority;
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ static pthread_mutex_t waiter_mutex;
|
|||
static pthread_mutex_t cond_mutex;
|
||||
static pthread_cond_t cond_var;
|
||||
|
||||
static FILE *logfile = stdout;
|
||||
static FILE *logfile;
|
||||
static int error_count = 0, pass_count = 0, total = 0;
|
||||
|
||||
|
||||
|
@ -354,7 +354,7 @@ waiter (void *arg)
|
|||
/* Do we report our status? */
|
||||
if (statep->flags & FLAGS_REPORT_WAITCONDVAR) {
|
||||
write (pipefd[1], &statep->id, sizeof (statep->id));
|
||||
log_trace ("Thread %d: wrote %d to pipe.\n",
|
||||
log_trace ("Thread %d: wrote to pipe.\n",
|
||||
(int) statep->id);
|
||||
}
|
||||
log_trace ("Thread %d: received cond_var signal.\n",
|
||||
|
@ -1438,6 +1438,8 @@ int main (int argc, char *argv[])
|
|||
struct sigaction act;
|
||||
struct sched_param param;
|
||||
|
||||
logfile = stdout;
|
||||
|
||||
assert (pthread_getschedparam (pthread_self (), &policy, ¶m) == 0);
|
||||
main_prio = param.sched_priority;
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ static pthread_mutex_t waiter_mutex;
|
|||
static pthread_mutex_t cond_mutex;
|
||||
static pthread_cond_t cond_var;
|
||||
|
||||
static FILE *logfile = stdout;
|
||||
static FILE *logfile;
|
||||
static int error_count = 0, pass_count = 0, total = 0;
|
||||
|
||||
|
||||
|
@ -354,7 +354,7 @@ waiter (void *arg)
|
|||
/* Do we report our status? */
|
||||
if (statep->flags & FLAGS_REPORT_WAITCONDVAR) {
|
||||
write (pipefd[1], &statep->id, sizeof (statep->id));
|
||||
log_trace ("Thread %d: wrote %d to pipe.\n",
|
||||
log_trace ("Thread %d: wrote to pipe.\n",
|
||||
(int) statep->id);
|
||||
}
|
||||
log_trace ("Thread %d: received cond_var signal.\n",
|
||||
|
@ -1438,6 +1438,8 @@ int main (int argc, char *argv[])
|
|||
struct sigaction act;
|
||||
struct sched_param param;
|
||||
|
||||
logfile = stdout;
|
||||
|
||||
assert (pthread_getschedparam (pthread_self (), &policy, ¶m) == 0);
|
||||
main_prio = param.sched_priority;
|
||||
|
||||
|
|
Loading…
Reference in a new issue