Re-instate '++' (for the third time).
authordrepper <drepper>
Sun, 28 Dec 1997 15:28:19 +0000 (15:28 +0000)
committerdrepper <drepper>
Sun, 28 Dec 1997 15:28:19 +0000 (15:28 +0000)
sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c

index 6b4373d..211a56b 100644 (file)
     (envp) = (argv) + (argc) + 1;                              \
     for (_tmp = (void **) (envp); *_tmp; ++_tmp)               \
       continue;                                                        \
-    if (*_tmp == 0 && ((size_t)_tmp & 0xf) != 0)               \
+    /* The following '++' is important!  */                    \
+    ++_tmp;                                                    \
+    if (*_tmp == 0)                                            \
       {                                                                \
        size_t _test = (size_t)_tmp;                            \
        _test = _test + 0xf & ~0xf;                             \
-       if (*(long *)_test == AT_PHDR)                          \
-         _tmp = (void **)_test;                                \
+       _tmp = (void **)_test;                                  \
       }                                                                \
     (auxp) = (void *) _tmp;                                    \
   } while (0)