Minor changes (almost entirely in main.c):

* Heavily commented options
* Fixed bug introduced into default_duration and -w (my fault)
* Defined configuration file string defaults (no processing yet)
* Added simple optimization to option processing
* Reformed some comments for easier readability
* Fixed bug that caused program not to drop root privs when
  running on port under 1024
* Converted further to use syslog instead of printf
This commit is contained in:
ddouthitt
2001-09-25 14:03:13 +00:00
parent 4a75325042
commit a7bf3b00ad
2 changed files with 176 additions and 113 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
#include "main.h"
int default_priority = 128 ;
int default_duration = 64 ; // About 8 seconds
int default_duration = DEFAULT_SCREEN_DURATION ; // About 8 seconds
screen *
screen_create ()
@@ -30,7 +30,7 @@ screen_create ()
s->id = NULL;
s->name = NULL;
s->priority = DEFAULT_SCREEN_PRIORITY;
s->duration = DEFAULT_SCREEN_DURATION;
s->duration = default_duration;
s->heartbeat = DEFAULT_HEARTBEAT;
s->wid = lcd.wid;
s->hgt = lcd.hgt;