summaryrefslogtreecommitdiff
path: root/time.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 /time.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 'time.c')
-rw-r--r--time.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/time.c b/time.c
index 8975cc7..9f47a71 100644
--- a/time.c
+++ b/time.c
@@ -283,7 +283,7 @@ static const struct xlat which[] = {
XLAT(ITIMER_REAL),
XLAT(ITIMER_VIRTUAL),
XLAT(ITIMER_PROF),
- { 0, NULL },
+ XLAT_END
};
static void
@@ -443,7 +443,7 @@ static const struct xlat adjtimex_modes[] = {
#ifdef ADJ_OFFSET_SS_READ
XLAT(ADJ_OFFSET_SS_READ),
#endif
- { 0, NULL }
+ XLAT_END
};
static const struct xlat adjtimex_status[] = {
@@ -495,7 +495,7 @@ static const struct xlat adjtimex_status[] = {
#ifdef STA_CLK
XLAT(STA_CLK),
#endif
- { 0, NULL }
+ XLAT_END
};
static const struct xlat adjtimex_state[] = {
@@ -517,7 +517,7 @@ static const struct xlat adjtimex_state[] = {
#ifdef TIME_ERROR
XLAT(TIME_ERROR),
#endif
- { 0, NULL }
+ XLAT_END
};
#if SUPPORTED_PERSONALITIES > 1
@@ -640,7 +640,7 @@ sys_adjtimex(struct tcb *tcp)
static const struct xlat clockflags[] = {
XLAT(TIMER_ABSTIME),
- { 0, NULL }
+ XLAT_END
};
static const struct xlat clocknames[] = {
@@ -665,7 +665,7 @@ static const struct xlat clocknames[] = {
#ifdef CLOCK_MONOTONIC_COARSE
XLAT(CLOCK_MONOTONIC_COARSE),
#endif
- { 0, NULL }
+ XLAT_END
};
#ifdef CLOCKID_TO_FD
@@ -673,7 +673,7 @@ static const struct xlat cpuclocknames[] = {
XLAT(CPUCLOCK_PROF),
XLAT(CPUCLOCK_VIRT),
XLAT(CPUCLOCK_SCHED),
- { 0, NULL }
+ XLAT_END
};
#endif
@@ -761,7 +761,7 @@ static const struct xlat sigev_value[] = {
XLAT(SIGEV_NONE),
XLAT(SIGEV_THREAD),
XLAT(SIGEV_THREAD_ID),
- { 0, NULL }
+ XLAT_END
};
#if SUPPORTED_PERSONALITIES > 1
@@ -989,7 +989,7 @@ rtc_ioctl(struct tcb *tcp, long code, long arg)
static const struct xlat timerfdflags[] = {
XLAT(TFD_TIMER_ABSTIME),
- { 0, NULL }
+ XLAT_END
};
int