Fixed some indenting, fixed an implicit declaration of dw_printf()

This commit is contained in:
Nate Morrison 2022-03-22 01:51:48 -07:00
parent bc07681df9
commit 0a3707cb5b
10 changed files with 31 additions and 25 deletions

View File

@ -1524,7 +1524,7 @@ static void usage (char **argv)
/* I don't know if win32 supports ANSI colour sequences. */
#else
// TODO: Could vary by platform and build options.
//dw_printf ("Complete documentation can be found in /usr/local/share/doc/direwolf\n");
dw_printf ("Complete documentation can be found in /usr/local/share/doc/direwolf\n");
//dw_printf ("\e[0m\e\n\e[0J\e"); /* This appears to break the last bit of colour, so it is commented out. */
#endif
dw_printf ("or online at https://github.com/wb2osz/direwolf/tree/master/doc\n");
@ -1535,3 +1535,4 @@ static void usage (char **argv)
/* end direwolf.c */

View File

@ -484,3 +484,4 @@ static int my_unstuff (int chan, int subchan, int slice, unsigned char * restric
} // my_unstuff
// end fx25_rec.c

View File

@ -335,3 +335,4 @@ static int stuff_it (unsigned char *in, int ilen, unsigned char *out, int osize)
} // end stuff_it
// end fx25_send.c

View File

@ -1048,3 +1048,4 @@ int main (int argc, char *argv[])
/* end latlong.c */

View File

@ -116,3 +116,4 @@ static void usage (void)
dw_printf ("\e[0m\e\n\e[0J\e");
exit (1);
}

View File

@ -94,7 +94,7 @@ int main (int argc, char *argv[])
}
else {
fprintf (stderr, "Can't open %s for read.\n", argv[n]);
dw_printf ("\e[0m\e\n\e[0J\e");
printf ("\e[0m\e\n\e[0J\e");
exit (1);
}
}
@ -103,7 +103,7 @@ int main (int argc, char *argv[])
if (num_things == 0) {
fprintf (stderr, "Nothing to process.\n");
dw_printf ("\e[0m\e\n\e[0J\e");
printf ("\e[0m\e\n\e[0J\e");
exit (1);
}
@ -147,8 +147,8 @@ int main (int argc, char *argv[])
* GPX file tail.
*/
printf ("</gpx>\n");
printf ("\e[0m\e\n\e[0J\e");
dw_printf ("\e[0m\e\n\e[0J\e");
exit (0);
}

View File

@ -145,3 +145,4 @@ static void usage (void)
dw_printf ("\e[0m\e\n\e[0J\e");
exit (1);
}