summaryrefslogtreecommitdiff
path: root/mem.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2014-02-05 02:20:51 +0000
committerDmitry V. Levin <ldv@altlinux.org>2014-02-05 02:28:18 +0000
commit594527353359d9a6aad516992e09c393e11f3bd2 (patch)
treeccef62341623db916eade55a47c9b00f4ce45b7f /mem.c
parent82b1ea7c3fc854d5ea805f490d351d443701d60b (diff)
downloadstrace-594527353359d9a6aad516992e09c393e11f3bd2.tar.gz
strace-594527353359d9a6aad516992e09c393e11f3bd2.tar.bz2
strace-594527353359d9a6aad516992e09c393e11f3bd2.tar.xz
Use XLAT_END macro
Automatically update all xlat structures using the following sed regexp: s/^[[:space:]]*{[[:space:]]*0[[:space:]]*,[[:space:]]*NULL[[:space:]]*,\?[[:space:]]*}[[:space:]]*,\?[[:space:]]*/\tXLAT_END/
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/mem.c b/mem.c
index 6d2145c..267773c 100644
--- a/mem.c
+++ b/mem.c
@@ -76,7 +76,7 @@ static const struct xlat mmap_prot[] = {
#ifdef PROT_SAO
XLAT(PROT_SAO),
#endif
- { 0, NULL },
+ XLAT_END
};
static const struct xlat mmap_flags[] = {
@@ -171,7 +171,7 @@ static const struct xlat mmap_flags[] = {
#ifdef MAP_NOCORE
XLAT(MAP_NOCORE),
#endif
- { 0, NULL },
+ XLAT_END
};
static int
@@ -326,7 +326,7 @@ static const struct xlat mremap_flags[] = {
#ifdef MREMAP_FIXED
XLAT(MREMAP_FIXED),
#endif
- { 0, NULL }
+ XLAT_END
};
int
@@ -394,7 +394,7 @@ static const struct xlat madvise_cmds[] = {
#ifdef MADV_DODUMP
XLAT(MADV_DODUMP),
#endif
- { 0, NULL },
+ XLAT_END
};
int
@@ -414,7 +414,7 @@ static const struct xlat mlockall_flags[] = {
#ifdef MCL_FUTURE
XLAT(MCL_FUTURE),
#endif
- { 0, NULL}
+ XLAT_END
};
int
@@ -434,7 +434,7 @@ static const struct xlat mctl_sync[] = {
#endif
XLAT(MS_ASYNC),
XLAT(MS_INVALIDATE),
- { 0, NULL },
+ XLAT_END
};
int
@@ -461,13 +461,13 @@ static const struct xlat mctl_funcs[] = {
XLAT(MC_SYNC),
XLAT(MC_UNLOCK),
XLAT(MC_UNLOCKAS),
- { 0, NULL },
+ XLAT_END
};
static const struct xlat mctl_lockas[] = {
XLAT(MCL_CURRENT),
XLAT(MCL_FUTURE),
- { 0, NULL },
+ XLAT_END
};
int
@@ -688,26 +688,26 @@ static const struct xlat policies[] = {
XLAT(MPOL_PREFERRED),
XLAT(MPOL_BIND),
XLAT(MPOL_INTERLEAVE),
- { 0, NULL }
+ XLAT_END
};
static const struct xlat mbindflags[] = {
XLAT(MPOL_MF_STRICT),
XLAT(MPOL_MF_MOVE),
XLAT(MPOL_MF_MOVE_ALL),
- { 0, NULL }
+ XLAT_END
};
static const struct xlat mempolicyflags[] = {
XLAT(MPOL_F_NODE),
XLAT(MPOL_F_ADDR),
- { 0, NULL }
+ XLAT_END
};
static const struct xlat move_pages_flags[] = {
XLAT(MPOL_MF_MOVE),
XLAT(MPOL_MF_MOVE_ALL),
- { 0, NULL }
+ XLAT_END
};
static void