]> granicus.if.org Git - strace/commitdiff
Style and comment fixes, no code changes
authorDenys Vlasenko <dvlasenk@redhat.com>
Fri, 19 Aug 2011 14:01:51 +0000 (16:01 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Tue, 23 Aug 2011 10:53:01 +0000 (12:53 +0200)
* 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>
mem.c

diff --git a/mem.c b/mem.c
index 56c20cc5edb29dede1a4d0ef27edc4c4cfcc9303..f0ccfc79727a47bb2c78736645c5aa905d7a783b 100644 (file)
--- a/mem.c
+++ b/mem.c
 #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)