summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2002-07-02 01:26:16 +0000
committerdeischen <deischen@FreeBSD.org>2002-07-02 01:26:16 +0000
commitdc65596ce8cf0888693732f4ed6f5600288dcd1e (patch)
treee449ba884cac8ab141d52397ab3606dd60c6651f /lib/libc_r
parent5edca8c4953ce7f0435388a6097384e8c51080d3 (diff)
downloadFreeBSD-src-dc65596ce8cf0888693732f4ed6f5600288dcd1e.zip
FreeBSD-src-dc65596ce8cf0888693732f4ed6f5600288dcd1e.tar.gz
Fix a couple of minor nits that prevented this from compiling.
Pointed out by: julian
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/test/mutex_d.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc_r/test/mutex_d.c b/lib/libc_r/test/mutex_d.c
index 21bf848..45d28a5 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, &param) == 0);
main_prio = param.sched_priority;
OpenPOWER on IntegriCloud