More formatting updates. Reduced whitespace, looks even better.

This commit is contained in:
William Ferrell
2000-03-30 20:43:33 +00:00
parent a98c8109a8
commit ddfd41f53e
78 changed files with 0 additions and 590 deletions
-19
View File
@@ -32,12 +32,10 @@
#include "input.h"
#include "main.h"
char *version = VERSION;
char *protocol_version = PROTOCOL_VERSION;
char *build_date = __DATE__;
/* no longer needed
static screen_size sizes[] =
{
@@ -63,11 +61,9 @@ static parameter args[] = {
{NULL, NULL},
};
void exit_program (int val);
void HelpScreen ();
int
main (int argc, char **argv)
{
@@ -81,8 +77,6 @@ main (int argc, char **argv)
char *str, *ing; // strings for commandline handling
// screen_size *size = &sizes[0]; // No longer needed
// Ctrl-C will cause a clean exit...
signal (SIGINT, exit_program);
// and "kill"...
@@ -92,8 +86,6 @@ main (int argc, char **argv)
// and just in case, "kill -KILL" (which cannot be trapped; but oh well)
signal (SIGKILL, exit_program);
// If no paramaters given, give the help screen.
if (argc == 1)
HelpScreen ();
@@ -116,12 +108,9 @@ main (int argc, char **argv)
}
#endif
// Set up lcd driver base system
lcd_init ("");
// Parse the command line now...
// TODO: Move this to a separate function?
for (i = 1; i < argc; i++) {
@@ -221,8 +210,6 @@ main (int argc, char **argv)
}
}
// Now init a bunch of required stuff...
if (sock_create_server () <= 0) {
@@ -247,9 +234,6 @@ main (int argc, char **argv)
server_screen->priority = 256;
}
// Main loop...
while (1) {
sock_poll_clients ();
@@ -280,14 +264,12 @@ main (int argc, char **argv)
usleep (TIME_UNIT);
}
// Quit!
exit_program (0);
return 0;
}
void
exit_program (int val)
{
@@ -310,7 +292,6 @@ exit_program (int val)
}
void
HelpScreen ()
{