Skip to content

Commit

Permalink
tools: tplink-safeloader: fix whitespace issues
Browse files Browse the repository at this point in the history
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 <freifunk@adrianschmutzler.de>
  • Loading branch information
adschm committed Nov 27, 2019
1 parent 9b90dc0 commit c0b87cf
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions tools/firmware-utils/src/tplink-safeloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -606,7 +606,7 @@ static struct device_info boards[] = {

/** Firmware layout for the C2600 */
{
.id = "C2600",
.id = "C2600",
.vendor = "",
.support_list =
"SupportList:\r\n"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -1152,7 +1152,7 @@ static struct device_info boards[] = {

/** Firmware layout for the C9 */
{
.id = "ARCHERC9",
.id = "ARCHERC9",
.vendor = "",
.support_list =
"SupportList:\n"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -1508,7 +1508,7 @@ static struct device_info boards[] = {

/** Firmware layout for the RE355 */
{
.id = "RE355",
.id = "RE355",
.vendor = "",
.support_list =
"SupportList:\r\n"
Expand Down Expand Up @@ -1546,7 +1546,7 @@ static struct device_info boards[] = {

/** Firmware layout for the RE450 */
{
.id = "RE450",
.id = "RE450",
.vendor = "",
.support_list =
"SupportList:\r\n"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit c0b87cf

Please sign in to comment.