mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
stdio-common: Use array_length and array_end macros
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <array_length.h>
|
||||
#include <locale.h>
|
||||
#include <mcheck.h>
|
||||
#include <stdint.h>
|
||||
@@ -32,8 +33,6 @@ const char *locs[] =
|
||||
{
|
||||
"C", "de_DE.ISO-8859-1", "de_DE.UTF-8", "ja_JP.EUC-JP"
|
||||
};
|
||||
#define nlocs (sizeof (locs) / sizeof (locs[0]))
|
||||
|
||||
|
||||
char large[50000];
|
||||
|
||||
@@ -56,7 +55,7 @@ do_test (void)
|
||||
}
|
||||
unlink (buf);
|
||||
|
||||
for (i = 0; i < nlocs; ++i)
|
||||
for (i = 0; i < array_length (locs); ++i)
|
||||
{
|
||||
FILE *fp;
|
||||
struct stat st;
|
||||
|
Reference in New Issue
Block a user