diff options
author | John Kohl <jtkohl@mit.edu> | 1987-11-09 07:14:18 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1987-11-09 07:14:18 +0000 |
commit | a966148d4d231bddcb978d34c0eeece3680f5f84 (patch) | |
tree | 23a9fc1025b84ddaef838b6cbd1c74f39de32c4d /server/main.c | |
parent | b783338f4304e8c278d72bfaa06f27247647adf3 (diff) |
standalone operation flag; increment version number
Diffstat (limited to 'server/main.c')
-rw-r--r-- | server/main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/server/main.c b/server/main.c index 430e0af..f757639 100644 --- a/server/main.c +++ b/server/main.c @@ -20,9 +20,9 @@ char copyright[] = "Copyright (c) 1987 Massachusetts Institute of Technology.\nP #endif SABER #endif lint #ifdef DEBUG -char version[] = "Zephyr Server (DEBUG) 1.1"; +char version[] = "Zephyr Server (DEBUG) 1.3"; #else -char version[] = "Zephyr Server 1.1"; +char version[] = "Zephyr Server 1.3"; #endif DEBUG /* * Server loop for Zephyr. @@ -102,6 +102,7 @@ char *programname; /* set to the basename of argv[0] */ char myname[MAXHOSTNAMELEN]; /* my host name */ #ifdef DEBUG int zdebug = 0; +int zalone = 0; #endif DEBUG u_long npackets = 0; /* number of packets processed */ long uptime; /* when we started operations */ @@ -138,13 +139,17 @@ char **argv; #endif DEBUG /* process arguments */ - while ((optchar = getopt(argc, argv, "d")) != EOF) { + while ((optchar = getopt(argc, argv, "ds")) != EOF) { switch(optchar) { #ifdef DEBUG case 'd': syslog(LOG_DEBUG, "debugging on"); zdebug = 1; break; + case 's': + syslog(LOG_DEBUG, "standalone operation"); + zalone = 1; + break; #endif DEBUG case '?': default: |