aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile/gfile_printg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfile/gfile_printg.c')
-rw-r--r--src/gfile/gfile_printg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gfile/gfile_printg.c b/src/gfile/gfile_printg.c
index 8f9d2570..697593d3 100644
--- a/src/gfile/gfile_printg.c
+++ b/src/gfile/gfile_printg.c
@@ -56,7 +56,7 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) {
int ret;
char *p, *s, c, filler;
int i, precision, width;
- bool_t is_long, left_align;
+ gBool is_long, left_align;
long l;
#if GFILE_ALLOW_FLOATS
float fpv;
@@ -81,14 +81,14 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) {
fmt++;
p = s = tmpbuf;
- left_align = FALSE;
+ left_align = gFalse;
filler = ' ';
width = 0;
precision = 0;
if (*fmt == '-') {
fmt++;
- left_align = TRUE;
+ left_align = gTrue;
}
if (*fmt == '0') {
fmt++;
@@ -119,7 +119,7 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) {
}
/* Long modifier.*/
if (c == 'l' || c == 'L') {
- is_long = TRUE;
+ is_long = gTrue;
if (*fmt)
c = *fmt++;
}
@@ -194,7 +194,7 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) {
i = (int)(p - s);
if ((width -= i) < 0)
width = 0;
- if (left_align == FALSE)
+ if (!left_align)
width = -width;
if (width < 0) {
if (*s == '-' && filler == '0') {