diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-08-19 16:01:51 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-08-23 12:53:01 +0200 |
commit | 72a5848741a1d64badc1d88f7424cd9f357842f4 (patch) | |
tree | e8384598d964369f679493f3d009ab05fc7e665e /mem.c | |
parent | 4b08df42ff069dcf44b8ed206ae33a2904c366ba (diff) | |
download | strace-72a5848741a1d64badc1d88f7424cd9f357842f4.tar.gz strace-72a5848741a1d64badc1d88f7424cd9f357842f4.tar.bz2 strace-72a5848741a1d64badc1d88f7424cd9f357842f4.tar.xz |
Style and comment fixes, no code changes
* mem.c: Indent includes to show nesting better.
(addtileflags): Fix style of this function definition;
correct wrong endif comment, add another endif comment.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'mem.c')
-rw-r--r-- | mem.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -40,13 +40,13 @@ #include <sys/mman.h> #if defined(LINUX) && defined(I386) -#include <asm/ldt.h> +# include <asm/ldt.h> # ifdef HAVE_STRUCT_USER_DESC # define modify_ldt_ldt_s user_desc # endif #endif #if defined(LINUX) && defined(SH64) -#include <asm/page.h> /* for PAGE_SHIFT */ +# include <asm/page.h> /* for PAGE_SHIFT */ #endif #ifdef HAVE_LONG_LONG_OFF_T @@ -195,10 +195,8 @@ static const struct xlat mmap_flags[] = { }; #ifdef TILE -static -int -addtileflags(flags) -long flags; +static int +addtileflags(long flags) { long home = flags & _MAP_CACHE_MKHOME(_MAP_CACHE_HOME_MASK); flags &= ~_MAP_CACHE_MKHOME(_MAP_CACHE_HOME_MASK); @@ -269,7 +267,7 @@ int sys_old_mmap(struct tcb *tcp) { long u_arg[6]; -#if defined(IA64) +#if defined(IA64) int i, v; /* * IA64 processes never call this routine, they only use the @@ -306,10 +304,10 @@ int sys_old_mmap(struct tcb *tcp) # endif if (umoven(tcp, tcp->u_arg[0], sizeof u_arg, (char *) u_arg) == -1) return 0; -#endif // defined(IA64) +#endif /* !IA64 && !SH[64] */ return print_mmap(tcp, u_arg, u_arg[5]); } -#endif +#endif /* LINUX */ int sys_mmap(struct tcb *tcp) |