Skip to content

Commit 5d92a24

Browse files
author
Nate Morrison
committed
Fixed indentation
1 parent 0a3707c commit 5d92a24

12 files changed

+19
-24
lines changed

Diff for: src/atest.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -604,21 +604,21 @@ int main (int argc, char *argv[])
604604
if (format.wformattag != 1) {
605605
text_color_set(DW_COLOR_ERROR);
606606
dw_printf ("Sorry, I only understand audio format 1 (PCM). This file has %d.\n", format.wformattag);
607-
dw_printf ("\e[0m\e\n\e[0J\e");
607+
dw_printf ("\e[0m\e\n\e[0J\e");
608608
exit (EXIT_FAILURE);
609609
}
610610

611611
if (format.nchannels != 1 && format.nchannels != 2) {
612612
text_color_set(DW_COLOR_ERROR);
613613
dw_printf ("Sorry, I only understand 1 or 2 channels. This file has %d.\n", format.nchannels);
614-
dw_printf ("\e[0m\e\n\e[0J\e");
614+
dw_printf ("\e[0m\e\n\e[0J\e");
615615
exit (EXIT_FAILURE);
616616
}
617617

618618
if (format.wbitspersample != 8 && format.wbitspersample != 16) {
619619
text_color_set(DW_COLOR_ERROR);
620620
dw_printf ("Sorry, I only understand 8 or 16 bits per sample. This file has %d.\n", format.wbitspersample);
621-
dw_printf ("\e[0m\e\n\e[0J\e");
621+
dw_printf ("\e[0m\e\n\e[0J\e");
622622
exit (EXIT_FAILURE);
623623
}
624624

@@ -721,17 +721,17 @@ int main (int argc, char *argv[])
721721
if (error_if_less_than != -1 && packets_decoded_total < error_if_less_than) {
722722
text_color_set(DW_COLOR_ERROR);
723723
dw_printf ("\n * * * TEST FAILED: number decoded is less than %d * * * \n", error_if_less_than);
724-
dw_printf ("\e[0m\e\n\e[0J\e");
724+
dw_printf ("\e[0m\e\n\e[0J\e");
725725
exit (EXIT_FAILURE);
726726
}
727727
if (error_if_greater_than != -1 && packets_decoded_total > error_if_greater_than) {
728728
text_color_set(DW_COLOR_ERROR);
729729
dw_printf ("\n * * * TEST FAILED: number decoded is greater than %d * * * \n", error_if_greater_than);
730-
dw_printf ("\e[0m\e\n\e[0J\e");
730+
dw_printf ("\e[0m\e\n\e[0J\e");
731731
exit (EXIT_FAILURE);
732732
}
733733

734-
dw_printf ("\e[0m\e\n\e[0J\e");
734+
dw_printf ("\e[0m\e\n\e[0J\e");
735735
exit (EXIT_SUCCESS);
736736
}
737737

@@ -1023,7 +1023,7 @@ static void usage (void) {
10231023
dw_printf (" Try different combinations of options to compare decoding\n");
10241024
dw_printf (" performance.\n");
10251025

1026-
dw_printf ("\e[0m\e\n\e[0J\e");
1026+
dw_printf ("\e[0m\e\n\e[0J\e");
10271027
exit (1);
10281028
}
10291029

Diff for: src/audio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ int audio_get (int a)
10561056
if (res <= 0) {
10571057
text_color_set(DW_COLOR_INFO);
10581058
dw_printf ("\nEnd of file on stdin. Exiting.\n");
1059-
dw_printf ("\e[0m\e\n\e[0J\e");
1059+
dw_printf ("\e[0m\e\n\e[0J\e");
10601060
exit (0);
10611061
}
10621062

Diff for: src/audio_win.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ int audio_get (int a)
890890
if (res <= 0) {
891891
text_color_set(DW_COLOR_INFO);
892892
dw_printf ("\nEnd of file on stdin. Exiting.\n");
893-
dw_printf ("\e[0m\e\n\e[0J\e");
893+
dw_printf ("\e[0m\e\n\e[0J\e");
894894
exit (0);
895895
}
896896

Diff for: src/direwolf.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ int main (int argc, char *argv[])
444444
if (B_opt < MIN_BAUD || B_opt > MAX_BAUD) {
445445
text_color_set(DW_COLOR_ERROR);
446446
dw_printf ("Use a more reasonable data baud rate in range of %d - %d.\n", MIN_BAUD, MAX_BAUD);
447-
dw_printf ("\e[0m\e\n\e[0J\e");
447+
dw_printf ("\e[0m\e\n\e[0J\e");
448448
exit (EXIT_FAILURE);
449449
}
450450
break;
@@ -476,7 +476,7 @@ int main (int argc, char *argv[])
476476
if (D_opt < 1 || D_opt > 8) {
477477
text_color_set(DW_COLOR_ERROR);
478478
dw_printf ("Crazy value for -D. \n");
479-
dw_printf ("\e[0m\e\n\e[0J\e");
479+
dw_printf ("\e[0m\e\n\e[0J\e");
480480
exit (EXIT_FAILURE);
481481
}
482482
break;
@@ -487,7 +487,7 @@ int main (int argc, char *argv[])
487487
if (U_opt < 1 || U_opt > 4) {
488488
text_color_set(DW_COLOR_ERROR);
489489
dw_printf ("Crazy value for -U. \n");
490-
dw_printf ("\e[0m\e\n\e[0J\e");
490+
dw_printf ("\e[0m\e\n\e[0J\e");
491491
exit (EXIT_FAILURE);
492492
}
493493
break;
@@ -1443,7 +1443,6 @@ static void cleanup_linux (int x)
14431443
ptt_term ();
14441444
dwgps_term ();
14451445
SLEEP_SEC(1);
1446-
dw_printf ("\e[0m\e\n\e[0J\e");
14471446
exit(0);
14481447
}
14491448

@@ -1522,10 +1521,10 @@ static void usage (char **argv)
15221521
#if __WIN32__
15231522
dw_printf ("Complete documentation can be found in the 'doc' folder\n");
15241523
/* I don't know if win32 supports ANSI colour sequences. */
1524+
dw_printf ("\e[0m\e\n\e[0J\e");
15251525
#else
15261526
// TODO: Could vary by platform and build options.
15271527
dw_printf ("Complete documentation can be found in /usr/local/share/doc/direwolf\n");
1528-
//dw_printf ("\e[0m\e\n\e[0J\e"); /* This appears to break the last bit of colour, so it is commented out. */
15291528
#endif
15301529
dw_printf ("or online at https://github.com/wb2osz/direwolf/tree/master/doc\n");
15311530
dw_printf ("\e[0m\e\n\e[0J\e");

Diff for: src/direwolf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#endif
1010

1111

12-
1312
#ifndef DIREWOLF_H
1413
#define DIREWOLF_H 1
1514

@@ -317,4 +316,5 @@ size_t strlcat_debug(char *__restrict__ dst, const char *__restrict__ src, size_
317316

318317
#endif /* BSD or Apple */
319318

319+
320320
#endif /* ifndef DIREWOLF_H */

Diff for: src/fx25_rec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,5 +483,5 @@ static int my_unstuff (int chan, int subchan, int slice, unsigned char * restric
483483

484484
} // my_unstuff
485485

486-
// end fx25_rec.c
487486

487+
// end fx25_rec.c

Diff for: src/fx25_send.c

-1
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,3 @@ static int stuff_it (unsigned char *in, int ilen, unsigned char *out, int osize)
335335
} // end stuff_it
336336

337337
// end fx25_send.c
338-

Diff for: src/gen_packets.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ int main(int argc, char **argv)
252252
if (modem.achan[0].baud < MIN_BAUD || modem.achan[0].baud > MAX_BAUD) {
253253
text_color_set(DW_COLOR_ERROR);
254254
dw_printf ("Use a more reasonable bit rate in range of %d - %d.\n", MIN_BAUD, MAX_BAUD);
255-
dw_printf ("\e[0m\e\n\e[0J\e");
255+
dw_printf ("\e[0m\e\n\e[0J\e");
256256
exit (EXIT_FAILURE);
257257
}
258258
break;
@@ -273,7 +273,7 @@ int main(int argc, char **argv)
273273
if (modem.achan[0].baud != 100 && (modem.achan[0].baud < MIN_BAUD || modem.achan[0].baud > MAX_BAUD)) {
274274
text_color_set(DW_COLOR_ERROR);
275275
dw_printf ("Use a more reasonable bit rate in range of %d - %d.\n", MIN_BAUD, MAX_BAUD);
276-
dw_printf ("\e[0m\e\n\e[0J\e");
276+
dw_printf ("\e[0m\e\n\e[0J\e");
277277
exit (EXIT_FAILURE);
278278
}
279279

@@ -581,7 +581,7 @@ int main(int argc, char **argv)
581581
input_fp = fopen(argv[optind], "r");
582582
if (input_fp == NULL) {
583583
text_color_set(DW_COLOR_ERROR);
584-
dw_printf ("Can't open %s for read.\n", argv[optind]);
584+
dw_printf ("Can't open %s for read.\n", argv[optind]);
585585
dw_printf ("\e[0m\e\n\e[0J\e");
586586
exit (EXIT_FAILURE);
587587
}

Diff for: src/latlong.c

-1
Original file line numberDiff line numberDiff line change
@@ -1048,4 +1048,3 @@ int main (int argc, char *argv[])
10481048

10491049

10501050
/* end latlong.c */
1051-

Diff for: src/ll2utm.c

-1
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,3 @@ static void usage (void)
116116
dw_printf ("\e[0m\e\n\e[0J\e");
117117
exit (1);
118118
}
119-

Diff for: src/log2gpx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int main (int argc, char *argv[])
9494
}
9595
else {
9696
fprintf (stderr, "Can't open %s for read.\n", argv[n]);
97-
printf ("\e[0m\e\n\e[0J\e");
97+
printf ("\e[0m\e\n\e[0J\e");
9898
exit (1);
9999
}
100100
}

Diff for: src/utm2ll.c

-1
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,3 @@ static void usage (void)
145145
dw_printf ("\e[0m\e\n\e[0J\e");
146146
exit (1);
147147
}
148-

0 commit comments

Comments
 (0)