diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2014-02-05 02:20:51 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-02-05 02:28:18 +0000 |
commit | 594527353359d9a6aad516992e09c393e11f3bd2 (patch) | |
tree | ccef62341623db916eade55a47c9b00f4ce45b7f /resource.c | |
parent | 82b1ea7c3fc854d5ea805f490d351d443701d60b (diff) | |
download | strace-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 'resource.c')
-rw-r--r-- | resource.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -85,7 +85,7 @@ static const struct xlat resources[] = { #ifdef RLIMIT_VMEM XLAT(RLIMIT_VMEM), #endif - { 0, NULL } + XLAT_END }; #if !(SIZEOF_RLIM_T == 4 || SIZEOF_RLIM_T == 8) @@ -238,7 +238,7 @@ static const struct xlat usagewho[] = { #ifdef RUSAGE_BOTH XLAT(RUSAGE_BOTH), #endif - { 0, NULL }, + XLAT_END }; #ifdef ALPHA @@ -390,7 +390,7 @@ static const struct xlat priorities[] = { XLAT(PRIO_PROCESS), XLAT(PRIO_PGRP), XLAT(PRIO_USER), - { 0, NULL }, + XLAT_END }; int |