From 937f09dd3532a2033e9bf159bed842bfd1f3ad2a Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 30 Oct 2020 22:06:33 -0700 Subject: *: more minor cleanups No need for fflush(stderr) when it's already unbuffered by default. According to setvbuf(3): Normally all files are block buffered. If a stream refers to a terminal (as stdout normally does), it is line buffered. The standard error stream stderr is always unbuffered by default. --- src/rmd_timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rmd_timer.c') diff --git a/src/rmd_timer.c b/src/rmd_timer.c index ed49520..9936860 100644 --- a/src/rmd_timer.c +++ b/src/rmd_timer.c @@ -109,10 +109,10 @@ void *rmdTimer(ProgData *pdata) if (!pdata->paused) { pdata->paused = TRUE; - fprintf(stderr,"STATE:PAUSED\n");fflush(stderr); - } else{ + fprintf(stderr, "STATE:PAUSED\n"); + } else { pdata->paused = FALSE; - fprintf(stderr,"STATE:RECORDING\n");fflush(stderr); + fprintf(stderr, "STATE:RECORDING\n"); pthread_cond_broadcast(&pdata->pause_cond); } } -- cgit v1.2.3