--- lbbs/src/main.c 2005/03/17 10:48:46 1.9 +++ lbbs/src/main.c 2005/05/07 12:15:30 1.16 @@ -19,128 +19,147 @@ #include "common.h" #include "io.h" #include "menu.h" +#include #include +#include +#include void -app_help(void) +app_help (void) { - prints ( - "Usage: bbsd [-fhv] [...]\n\n" - "-f\t--foreground\t\tForce program run in foreground\n" - "-h\t--help\t\t\tDisplay this help message\n" - "-v\t--version\t\tDisplay version information\n" - "\t--display-log\t\tDisplay standard log information\n" - "\t--display-error-log\tDisplay error log information\n" - "\n If meet any bug, please report to \n\n" - ); + prints ("Usage: bbsd [-fhv] [...]\n\n" + "-f\t--foreground\t\tForce program run in foreground\n" + "-h\t--help\t\t\tDisplay this help message\n" + "-v\t--version\t\tDisplay version information\n" + "\t--display-log\t\tDisplay standard log information\n" + "\t--display-error-log\tDisplay error log information\n" + "\n If meet any bug, please report to \n\n"); } void -arg_error(void) +arg_error (void) { prints ("Invalid arguments\n"); - app_help(); + app_help (); } int main (int argc, char *argv[]) { char log_dir[256], file_log_std[256], file_log_error[256], file_config[256]; - int i,j; + int i, j; int daemon = 1, std_log_redir = 0, error_log_redir = 0; //Parse args - for (i=1; i 0) + { + log_std ("."); + sleep(1); + } return 0; }