summaryrefslogtreecommitdiff
path: root/libexec/identd/identd.c
diff options
context:
space:
mode:
authorHugh Graham <hugh@cvs.openbsd.org>2001-04-15 23:48:17 +0000
committerHugh Graham <hugh@cvs.openbsd.org>2001-04-15 23:48:17 +0000
commit420542eac6b2a2ea081757507d99469d00de1411 (patch)
tree6cfc2d828c028c33379e38e4009c88801ecca433 /libexec/identd/identd.c
parent8a1460d1bbefded143a3197d62b0a666e5695840 (diff)
Replace a bunch of conditional expressions with global pointers.
Requested and checked by millert.
Diffstat (limited to 'libexec/identd/identd.c')
-rw-r--r--libexec/identd/identd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libexec/identd/identd.c b/libexec/identd/identd.c
index 541fcc8985c..fd6fce83c3a 100644
--- a/libexec/identd/identd.c
+++ b/libexec/identd/identd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: identd.c,v 1.17 2001/04/13 20:16:53 millert Exp $ */
+/* $OpenBSD: identd.c,v 1.18 2001/04/15 23:48:15 hugh Exp $ */
/*
* This program is in the public domain and may be used freely by anyone
@@ -41,7 +41,6 @@ int verbose_flag = 0;
int debug_flag = 0;
int syslog_flag = 0;
int multi_flag = 0;
-int other_flag = 0;
int unknown_flag = 0;
int number_flag = 0;
int noident_flag = 0;
@@ -51,7 +50,9 @@ int token_flag = 0;
int lport = 0;
int fport = 0;
-char *charset_name = NULL;
+const char *opsys_name = "UNIX";
+const char *charset_sep = "";
+char *charset_name = "";
char *indirect_host = NULL;
char *indirect_password = NULL;
@@ -203,6 +204,7 @@ main(argc, argv)
break;
case 'c':
charset_name = optarg;
+ charset_sep = " , ";
break;
case 'r':
indirect_host = optarg;
@@ -211,7 +213,7 @@ main(argc, argv)
syslog_flag++;
break;
case 'o':
- other_flag = 1;
+ opsys_name = "OTHER";
break;
case 'e':
unknown_flag = 1;