]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - stdio-common/tstscanf.c
[powerpc] No need to enter "Ignore Exceptions Mode"
[thirdparty/glibc.git] / stdio-common / tstscanf.c
index af829f35c16b6ae62da9d74bd2d594607f06317f..c30bf2eb5e825b5a13dd99f1a5d3d59d837620dc 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -13,8 +13,9 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
+#include <array_length.h>
 #ifdef BSD
 #include </usr/include/stdio.h>
 #else
@@ -154,7 +155,7 @@ main (int argc, char **argv)
       {
        int count;
 
-       if (rounds++ >= sizeof (ok) / sizeof (ok[0]))
+       if (rounds++ >= array_length (ok))
          {
            fputs ("test failed!\n", stdout);
            result = 1;