Remove redundant sizeof on EXPECTED_VIEW_LENGTH
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 14 May 2016 12:51:28 +0000 (05:51 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 14 May 2016 12:51:28 +0000 (05:51 -0700)
PR ld/20097
* testplug2.c (onall_symbols_read): Remove redundant sizeof
on EXPECTED_VIEW_LENGTH.
* testplug4.c (onall_symbols_read): Likewise.

ld/ChangeLog
ld/testplug2.c
ld/testplug4.c

index 13f8c0b1a3beea66dc6583767f4aa4fcf2126cd2..291c751b04dc2c771e516d6a7f1bd26b5311e39a 100644 (file)
@@ -1,3 +1,10 @@
+2016-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/20097
+       * testplug2.c (onall_symbols_read): Remove redundant sizeof
+       on EXPECTED_VIEW_LENGTH.
+       * testplug4.c (onall_symbols_read): Likewise.
+
 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/20093
index 5e346436833f9734304698508da04ddae3fa7884..5dc4e78b8fa06671423dea85aa6884a65b173eb8 100644 (file)
@@ -602,7 +602,7 @@ onall_symbols_read (void)
 #define EXPECTED_VIEW "/* The first line of this file must match the expectation of"
 #define EXPECTED_VIEW_LENGTH (sizeof (EXPECTED_VIEW) - 1)
       if (file.filesize != SIZE_OF_FUNC_C
-         || SIZE_OF_FUNC_C < sizeof EXPECTED_VIEW_LENGTH
+         || SIZE_OF_FUNC_C < EXPECTED_VIEW_LENGTH
          || memcmp (view, EXPECTED_VIEW, EXPECTED_VIEW_LENGTH) != 0)
        {
          char result[EXPECTED_VIEW_LENGTH + 1];
index fe7665aea3fedc2fd03ac4d50d82e26ce0523bd7..86bad65cba6bce40ec986d9437329ed31f69cd6e 100644 (file)
@@ -608,7 +608,7 @@ onall_symbols_read (void)
 #define EXPECTED_VIEW "/* The first line of this file must match the expectation of"
 #define EXPECTED_VIEW_LENGTH (sizeof (EXPECTED_VIEW) - 1)
       if (file.filesize != SIZE_OF_PR20070B_C
-         || SIZE_OF_PR20070B_C < sizeof EXPECTED_VIEW_LENGTH
+         || SIZE_OF_PR20070B_C < EXPECTED_VIEW_LENGTH
          || memcmp (view, EXPECTED_VIEW, EXPECTED_VIEW_LENGTH) != 0)
        {
          char result[EXPECTED_VIEW_LENGTH + 1];
This page took 0.030579 seconds and 4 git commands to generate.