aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-03-18 10:39:24 +0100
committerThomas White <taw@physics.org>2010-03-18 10:39:24 +0100
commit7678f34afc9df872af539d56c8110e578e683b08 (patch)
tree5a3c828bee1314d20f5cd7ca6bf45a5a124e53db /src
parent99186a8d645d0682c547d4f550ba860f15d7bb2d (diff)
fileno(stderr) -> STDERR_FILENO
Diffstat (limited to 'src')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 70fd1453..64423c2f 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -52,7 +52,7 @@ void progress_bar(int val, int total, const char *text)
char s[1024];
const int width = 50;
- if ( !isatty(fileno(stderr)) ) return;
+ if ( !isatty(STDERR_FILENO) ) return;
frac = (double)val/total;
n = (int)(frac*width);