From 2aadb70562feae948ed093c86808e7331c5bc6bd Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 29 Jan 2018 22:44:46 +0100 Subject: libio: Rename _FWRITE to FWRITE_FUNC _FWRITE would be in the reserved-namespace. * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC. (do_test_bz20181): Rename accordingly. --- libio/tst-memstream3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libio/tst-memstream3.c') diff --git a/libio/tst-memstream3.c b/libio/tst-memstream3.c index df0da5bac5..bb3300dc57 100644 --- a/libio/tst-memstream3.c +++ b/libio/tst-memstream3.c @@ -29,7 +29,7 @@ # define W(o) o # define OPEN_MEMSTREAM open_memstream # define PRINTF printf -# define _FWRITE fwrite +# define FWRITE_FUNC fwrite # define FPUTC fputc # define STRCMP strcmp #endif @@ -114,14 +114,14 @@ do_test_bz20181 (void) if (fp == NULL) ERROR_RET1 ("%s failed\n", S(OPEN_MEMSTREAM)); - if ((ret = _FWRITE (W("abc"), 1, 3, fp)) != 3) - ERROR_RET1 ("%s failed (errno = %d)\n", S(_FWRITE), errno); + if ((ret = FWRITE_FUNC (W("abc"), 1, 3, fp)) != 3) + ERROR_RET1 ("%s failed (errno = %d)\n", S(FWRITE_FUNC), errno); if (fseek (fp, 0, SEEK_SET) != 0) ERROR_RET1 ("fseek failed (errno = %d)\n", errno); - if (_FWRITE (W("z"), 1, 1, fp) != 1) - ERROR_RET1 ("%s failed (errno = %d)\n", S(_FWRITE), errno); + if (FWRITE_FUNC (W("z"), 1, 1, fp) != 1) + ERROR_RET1 ("%s failed (errno = %d)\n", S(FWRITE_FUNC), errno); if (fflush (fp) != 0) ERROR_RET1 ("fflush failed (errno = %d)\n", errno); -- cgit v1.2.3