diff options
author | Joseph Myers <joseph@codesourcery.com> | 2019-02-28 15:02:09 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2019-02-28 15:02:09 +0000 |
commit | 462e83a4a0757184eeac821ff3fc0a739235bd47 (patch) | |
tree | 1a3626462ba6264b35707c66501e53851d403a22 /sysdeps/powerpc/powerpc32 | |
parent | cc3e573ce3a542ea6d3711311e41f66261747a0e (diff) | |
download | glibc-462e83a4a0757184eeac821ff3fc0a739235bd47.tar.gz glibc-462e83a4a0757184eeac821ff3fc0a739235bd47.tar.xz glibc-462e83a4a0757184eeac821ff3fc0a739235bd47.zip |
Add more spaces before '('.
This patch fixes more places where a space should have been present before '(' in accordance with the GNU Coding Standards (as with the previous patch, mainly for calls to sizeof). Tested with build-many-glibcs.py. * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt): Use space before '('. (__process_machine_rela): Likewise. * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Likewise. * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS): Likewise. * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise. * sysdeps/powerpc/test-arith.c (union_t): Likewise. (pattern): Likewise. (delta): Likewise. (check_result): Likewise. (check_excepts): Likewise. (check_op): Likewise. (fail_xr): Likewise. * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise. * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise. (SCNHSZ): Likewise. * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES): Likewise. (ARGS): Likewise. (__makecontext): Likewise. * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Likewise.
Diffstat (limited to 'sysdeps/powerpc/powerpc32')
-rw-r--r-- | sysdeps/powerpc/powerpc32/dl-machine.c | 4 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc32/register-dump.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/powerpc/powerpc32/dl-machine.c b/sysdeps/powerpc/powerpc32/dl-machine.c index 79ac6f427b..0651d5cf05 100644 --- a/sysdeps/powerpc/powerpc32/dl-machine.c +++ b/sysdeps/powerpc/powerpc32/dl-machine.c @@ -348,7 +348,7 @@ __elf_machine_fixup_plt (struct link_map *map, Elf32_Word index, offset, num_plt_entries; num_plt_entries = (map->l_info[DT_PLTRELSZ]->d_un.d_val - / sizeof(Elf32_Rela)); + / sizeof (Elf32_Rela)); plt = (Elf32_Word *) D_PTR (map, l_info[DT_PLTGOT]); offset = reloc_addr - plt; index = (offset - PLT_INITIAL_ENTRY_WORDS)/2; @@ -538,7 +538,7 @@ __process_machine_rela (struct link_map *map, { index = (offset - PLT_INITIAL_ENTRY_WORDS)/2; num_plt_entries = (map->l_info[DT_PLTRELSZ]->d_un.d_val - / sizeof(Elf32_Rela)); + / sizeof (Elf32_Rela)); data_words = plt + PLT_DATA_START_WORDS (num_plt_entries); data_words[index] = finaladdr; reloc_addr[0] = OPCODE_LI (11, index * 4); diff --git a/sysdeps/powerpc/powerpc32/register-dump.h b/sysdeps/powerpc/powerpc32/register-dump.h index 2c3ba1d2eb..85a3c70b9c 100644 --- a/sysdeps/powerpc/powerpc32/register-dump.h +++ b/sysdeps/powerpc/powerpc32/register-dump.h @@ -96,15 +96,15 @@ r28=000001c% r29=000001d% r30=000001e% r31=000001f% fscr=0000071% ccr=0000026%\ static void register_dump (int fd, struct sigcontext *ctx) { - char buffer[sizeof(dumpform)]; + char buffer[sizeof (dumpform)]; char *bufferpos; unsigned regno; unsigned *regs = (unsigned *)(ctx->regs); - memcpy(buffer, dumpform, sizeof(dumpform)); + memcpy(buffer, dumpform, sizeof (dumpform)); /* Generate the output. */ - while ((bufferpos = memchr (buffer, '%', sizeof(dumpform)))) + while ((bufferpos = memchr (buffer, '%', sizeof (dumpform)))) { regno = xtoi (bufferpos[-1]) | xtoi (bufferpos[-2]) << 4; memset (bufferpos-2, '0', 3); @@ -112,7 +112,7 @@ register_dump (int fd, struct sigcontext *ctx) } /* Write the output. */ - write (fd, buffer, sizeof(buffer) - 1); + write (fd, buffer, sizeof (buffer) - 1); } |