mirror of git://sourceware.org/git/glibc.git
Fix up formatting in tst-ftell-active-handler.c
This commit is contained in:
parent
091eff71a5
commit
d4b17258bb
|
@ -1,5 +1,10 @@
|
||||||
2014-03-04 Siddhesh Poyarekar <siddhesh@redhat.com>
|
2014-03-04 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||||
|
|
||||||
|
* libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
|
||||||
|
formatting.
|
||||||
|
(get_handles_fopen): Likewise.
|
||||||
|
(do_write_test): Likewise.
|
||||||
|
|
||||||
* libio/wfileops.c (do_ftell_wide): Fix up formatting.
|
* libio/wfileops.c (do_ftell_wide): Fix up formatting.
|
||||||
|
|
||||||
* libio/fileops.c (do_ftell): Use cached offset when
|
* libio/fileops.c (do_ftell): Use cached offset when
|
||||||
|
|
|
@ -44,11 +44,11 @@ static int do_test (void);
|
||||||
{ \
|
{ \
|
||||||
(fp) = fdopen ((fd), (mode)); \
|
(fp) = fdopen ((fd), (mode)); \
|
||||||
if ((fp) == NULL) \
|
if ((fp) == NULL) \
|
||||||
{ \
|
{ \
|
||||||
printf ("fdopen failed: %m\n"); \
|
printf ("fdopen failed: %m\n"); \
|
||||||
close (fd); \
|
close (fd); \
|
||||||
ret = 1; \
|
ret = 1; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
ret; \
|
ret; \
|
||||||
})
|
})
|
||||||
|
@ -66,7 +66,7 @@ static int do_test (void);
|
||||||
{ \
|
{ \
|
||||||
(fd) = fileno (fp); \
|
(fd) = fileno (fp); \
|
||||||
if ((fd) == -1) \
|
if ((fd) == -1) \
|
||||||
{ \
|
{ \
|
||||||
printf ("fileno failed: %m\n"); \
|
printf ("fileno failed: %m\n"); \
|
||||||
ret = 1; \
|
ret = 1; \
|
||||||
} \
|
} \
|
||||||
|
@ -230,7 +230,7 @@ do_write_test (const char *filename)
|
||||||
|
|
||||||
printf ("offset = %ld\n", offset);
|
printf ("offset = %ld\n", offset);
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue