From: Adrian Schmutzler Date: Wed, 27 Nov 2019 20:05:29 +0000 (+0100) Subject: tools: tplink-safeloader: fix whitespace issues X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c0b87cf10b0d277803f889afa8285796d9b3b4f8;p=openwrt%2Fstaging%2Fstintel.git tools: tplink-safeloader: fix whitespace issues This replaces tabs by spaces when preceding an equal sign. This improves consistency in the file and makes the indent look correct on all platforms. While at it, also fix one case of inconsistent leading spaces. Signed-off-by: Adrian Schmutzler --- diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c index c09ea347b2..29ffae80ff 100644 --- a/tools/firmware-utils/src/tplink-safeloader.c +++ b/tools/firmware-utils/src/tplink-safeloader.c @@ -120,8 +120,8 @@ static const uint8_t md5_salt[16] = { static struct device_info boards[] = { /** Firmware layout for the CPE210/220 V1 */ { - .id = "CPE210", - .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", + .id = "CPE210", + .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", .support_list = "SupportList:\r\n" "CPE210(TP-LINK|UN|N300-2):1.0\r\n" @@ -233,8 +233,8 @@ static struct device_info boards[] = { /** Firmware layout for the CPE220 V2 */ { - .id = "CPE220V2", - .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", + .id = "CPE220V2", + .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", .support_list = "SupportList:\r\n" "CPE220(TP-LINK|EU|N300-2|00000000):2.0\r\n" @@ -314,8 +314,8 @@ static struct device_info boards[] = { /** Firmware layout for the CPE510/520 V1 */ { - .id = "CPE510", - .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", + .id = "CPE510", + .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", .support_list = "SupportList:\r\n" "CPE510(TP-LINK|UN|N300-5):1.0\r\n" @@ -475,8 +475,8 @@ static struct device_info boards[] = { }, { - .id = "WBS210", - .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", + .id = "WBS210", + .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", .support_list = "SupportList:\r\n" "WBS210(TP-LINK|UN|N300-2):1.20\r\n" @@ -507,8 +507,8 @@ static struct device_info boards[] = { }, { - .id = "WBS210V2", - .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", + .id = "WBS210V2", + .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", .support_list = "SupportList:\r\n" "WBS210(TP-LINK|UN|N300-2|00000000):2.0\r\n" @@ -539,8 +539,8 @@ static struct device_info boards[] = { }, { - .id = "WBS510", - .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", + .id = "WBS510", + .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", .support_list = "SupportList:\r\n" "WBS510(TP-LINK|UN|N300-5):1.20\r\n" @@ -572,8 +572,8 @@ static struct device_info boards[] = { }, { - .id = "WBS510V2", - .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", + .id = "WBS510V2", + .vendor = "CPE510(TP-LINK|UN|N300-5):1.0\r\n", .support_list = "SupportList:\r\n" "WBS510(TP-LINK|UN|N300-5|00000000):2.0\r\n" @@ -606,7 +606,7 @@ static struct device_info boards[] = { /** Firmware layout for the C2600 */ { - .id = "C2600", + .id = "C2600", .vendor = "", .support_list = "SupportList:\r\n" @@ -654,7 +654,7 @@ static struct device_info boards[] = { /** Firmware layout for the A7-V5 */ { - .id = "ARCHER-A7-V5", + .id = "ARCHER-A7-V5", .support_list = "SupportList:\n" "{product_name:Archer A7,product_ver:5.0.0,special_id:45550000}\n" @@ -694,7 +694,7 @@ static struct device_info boards[] = { /** Firmware layout for the C2v3 */ { - .id = "ARCHER-C2-V3", + .id = "ARCHER-C2-V3", .support_list = "SupportList:\n" "{product_name:ArcherC2,product_ver:3.0.0,special_id:00000000}\n" @@ -732,7 +732,7 @@ static struct device_info boards[] = { /** Firmware layout for the C25v1 */ { - .id = "ARCHER-C25-V1", + .id = "ARCHER-C25-V1", .support_list = "SupportList:\n" "{product_name:ArcherC25,product_ver:1.0.0,special_id:00000000}\n" @@ -770,8 +770,8 @@ static struct device_info boards[] = { /** Firmware layout for the C58v1 */ { - .id = "ARCHER-C58-V1", - .vendor = "", + .id = "ARCHER-C58-V1", + .vendor = "", .support_list = "SupportList:\r\n" "{product_name:Archer C58,product_ver:1.0.0,special_id:00000000}\r\n" @@ -804,8 +804,8 @@ static struct device_info boards[] = { /** Firmware layout for the C59v1 */ { - .id = "ARCHER-C59-V1", - .vendor = "", + .id = "ARCHER-C59-V1", + .vendor = "", .support_list = "SupportList:\r\n" "{product_name:Archer C59,product_ver:1.0.0,special_id:00000000}\r\n" @@ -843,8 +843,8 @@ static struct device_info boards[] = { /** Firmware layout for the C59v2 */ { - .id = "ARCHER-C59-V2", - .vendor = "", + .id = "ARCHER-C59-V2", + .vendor = "", .support_list = "SupportList:\r\n" "{product_name:Archer C59,product_ver:2.0.0,special_id:00000000}\r\n" @@ -883,8 +883,8 @@ static struct device_info boards[] = { /** Firmware layout for the Archer C6 v2 (EU/RU/JP) */ { - .id = "ARCHER-C6-V2", - .vendor = "", + .id = "ARCHER-C6-V2", + .vendor = "", .support_list = "SupportList:\r\n" "{product_name:Archer C6,product_ver:2.0.0,special_id:45550000}\r\n" @@ -953,8 +953,8 @@ static struct device_info boards[] = { /** Firmware layout for the C60v1 */ { - .id = "ARCHER-C60-V1", - .vendor = "", + .id = "ARCHER-C60-V1", + .vendor = "", .support_list = "SupportList:\r\n" "{product_name:Archer C60,product_ver:1.0.0,special_id:00000000}\r\n" @@ -987,8 +987,8 @@ static struct device_info boards[] = { /** Firmware layout for the C60v2 */ { - .id = "ARCHER-C60-V2", - .vendor = "", + .id = "ARCHER-C60-V2", + .vendor = "", .support_list = "SupportList:\r\n" "{product_name:Archer C60,product_ver:2.0.0,special_id:42520000}\r\n" @@ -1023,7 +1023,7 @@ static struct device_info boards[] = { /** Firmware layout for the C5 */ { - .id = "ARCHER-C5-V2", + .id = "ARCHER-C5-V2", .vendor = "", .support_list = "SupportList:\r\n" @@ -1058,7 +1058,7 @@ static struct device_info boards[] = { /** Firmware layout for the C7 */ { - .id = "ARCHER-C7-V4", + .id = "ARCHER-C7-V4", .support_list = "SupportList:\n" "{product_name:Archer C7,product_ver:4.0.0,special_id:00000000}\n" @@ -1104,7 +1104,7 @@ static struct device_info boards[] = { /** Firmware layout for the C7 v5*/ { - .id = "ARCHER-C7-V5", + .id = "ARCHER-C7-V5", .support_list = "SupportList:\n" "{product_name:Archer C7,product_ver:5.0.0,special_id:00000000}\n" @@ -1152,7 +1152,7 @@ static struct device_info boards[] = { /** Firmware layout for the C9 */ { - .id = "ARCHERC9", + .id = "ARCHERC9", .vendor = "", .support_list = "SupportList:\n" @@ -1439,7 +1439,7 @@ static struct device_info boards[] = { /** Firmware layout for the RE350 v1 */ { - .id = "RE350-V1", + .id = "RE350-V1", .vendor = "", .support_list = "SupportList:\n" @@ -1476,7 +1476,7 @@ static struct device_info boards[] = { /** Firmware layout for the RE350K v1 */ { - .id = "RE350K-V1", + .id = "RE350K-V1", .vendor = "", .support_list = "SupportList:\n" @@ -1508,7 +1508,7 @@ static struct device_info boards[] = { /** Firmware layout for the RE355 */ { - .id = "RE355", + .id = "RE355", .vendor = "", .support_list = "SupportList:\r\n" @@ -1546,7 +1546,7 @@ static struct device_info boards[] = { /** Firmware layout for the RE450 */ { - .id = "RE450", + .id = "RE450", .vendor = "", .support_list = "SupportList:\r\n" @@ -1584,7 +1584,7 @@ static struct device_info boards[] = { /** Firmware layout for the RE450 v2 */ { - .id = "RE450-V2", + .id = "RE450-V2", .vendor = "", .support_list = "SupportList:\r\n" @@ -1624,7 +1624,7 @@ static struct device_info boards[] = { /** Firmware layout for the RE650 */ { - .id = "RE650-V1", + .id = "RE650-V1", .vendor = "", .support_list = "SupportList:\r\n" @@ -1698,13 +1698,13 @@ static void set_source_date_epoch() { char *env = getenv("SOURCE_DATE_EPOCH"); char *endptr = env; errno = 0; - if (env && *env) { + if (env && *env) { source_date_epoch = strtoull(env, &endptr, 10); if (errno || (endptr && *endptr != '\0')) { fprintf(stderr, "Invalid SOURCE_DATE_EPOCH"); exit(1); } - } + } } /** Generates the partition-table partition */