diff options
author | Daniel Eischen <deischen@FreeBSD.org> | 2002-07-02 01:26:16 +0000 |
---|---|---|
committer | Daniel Eischen <deischen@FreeBSD.org> | 2002-07-02 01:26:16 +0000 |
commit | c3d580c9a106f5b9d38e750fe6a828e396d0039f (patch) | |
tree | e449ba884cac8ab141d52397ab3606dd60c6651f | |
parent | cfbd984f1c3215e5e45f6f443ecdfe9de6114a00 (diff) | |
download | src-c3d580c9a106f5b9d38e750fe6a828e396d0039f.tar.gz src-c3d580c9a106f5b9d38e750fe6a828e396d0039f.zip |
Fix a couple of minor nits that prevented this from compiling.
Pointed out by: julian
Notes
Notes:
svn path=/head/; revision=99239
-rw-r--r-- | lib/libc_r/test/mutex_d.c | 6 | ||||
-rw-r--r-- | lib/libkse/test/mutex_d.c | 6 | ||||
-rw-r--r-- | lib/libpthread/test/mutex_d.c | 6 |
3 files changed, 12 insertions, 6 deletions
diff --git a/lib/libc_r/test/mutex_d.c b/lib/libc_r/test/mutex_d.c index 21bf84850060..45d28a5f8ef3 100644 --- a/lib/libc_r/test/mutex_d.c +++ b/lib/libc_r/test/mutex_d.c @@ -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; diff --git a/lib/libkse/test/mutex_d.c b/lib/libkse/test/mutex_d.c index 21bf84850060..45d28a5f8ef3 100644 --- a/lib/libkse/test/mutex_d.c +++ b/lib/libkse/test/mutex_d.c @@ -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; diff --git a/lib/libpthread/test/mutex_d.c b/lib/libpthread/test/mutex_d.c index 21bf84850060..45d28a5f8ef3 100644 --- a/lib/libpthread/test/mutex_d.c +++ b/lib/libpthread/test/mutex_d.c @@ -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; |