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 /mtd.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 'mtd.c')
-rw-r--r-- | mtd.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -45,7 +45,7 @@ static const struct xlat mtd_mode_options[] = { XLAT(MTD_OPS_PLACE_OOB), XLAT(MTD_OPS_AUTO_OOB), XLAT(MTD_OPS_RAW), - { 0, NULL }, + XLAT_END }; static const struct xlat mtd_type_options[] = { @@ -57,7 +57,7 @@ static const struct xlat mtd_type_options[] = { XLAT(MTD_DATAFLASH), XLAT(MTD_UBIVOLUME), XLAT(MTD_MLCNANDFLASH), - { 0, NULL }, + XLAT_END }; static const struct xlat mtd_flags_options[] = { @@ -65,14 +65,14 @@ static const struct xlat mtd_flags_options[] = { XLAT(MTD_BIT_WRITEABLE), XLAT(MTD_NO_ERASE), XLAT(MTD_POWERUP_LOCK), - { 0, NULL }, + XLAT_END }; static const struct xlat mtd_otp_options[] = { XLAT(MTD_OTP_OFF), XLAT(MTD_OTP_FACTORY), XLAT(MTD_OTP_USER), - { 0, NULL }, + XLAT_END }; static const struct xlat mtd_nandecc_options[] = { @@ -81,7 +81,7 @@ static const struct xlat mtd_nandecc_options[] = { XLAT(MTD_NANDECC_AUTOPLACE), XLAT(MTD_NANDECC_PLACEONLY), XLAT(MTD_NANDECC_AUTOPL_USR), - { 0, NULL }, + XLAT_END }; int mtd_ioctl(struct tcb *tcp, long code, long arg) @@ -289,12 +289,12 @@ int mtd_ioctl(struct tcb *tcp, long code, long arg) static const struct xlat ubi_volume_types[] = { XLAT(UBI_DYNAMIC_VOLUME), XLAT(UBI_STATIC_VOLUME), - { 0, NULL }, + XLAT_END }; static const struct xlat ubi_volume_props[] = { XLAT(UBI_VOL_PROP_DIRECT_WRITE), - { 0, NULL }, + XLAT_END }; int ubi_ioctl(struct tcb *tcp, long code, long arg) |