summaryrefslogtreecommitdiffstats
path: root/contrib/amd/wire-test
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-01-13 19:23:16 +0000
committerobrien <obrien@FreeBSD.org>1999-01-13 19:23:16 +0000
commitc9384f1d982e4695904ef82271714a049cd32827 (patch)
tree61bf33c6051ae2a19db07aea7c3c0ed78913fe61 /contrib/amd/wire-test
parentc6e3533e1e31cbf25e04688d244a8fc2af2e1972 (diff)
downloadFreeBSD-src-c9384f1d982e4695904ef82271714a049cd32827.zip
FreeBSD-src-c9384f1d982e4695904ef82271714a049cd32827.tar.gz
Virgin import of AMD (am-utils) v6.0
Diffstat (limited to 'contrib/amd/wire-test')
-rw-r--r--contrib/amd/wire-test/wire-test.82
-rw-r--r--contrib/amd/wire-test/wire-test.c18
2 files changed, 14 insertions, 6 deletions
diff --git a/contrib/amd/wire-test/wire-test.8 b/contrib/amd/wire-test/wire-test.8
index 874ca92..0ea06f5 100644
--- a/contrib/amd/wire-test/wire-test.8
+++ b/contrib/amd/wire-test/wire-test.8
@@ -38,7 +38,7 @@
.\"
.\" %W% (Berkeley) %G%
.\"
-.\" $Id: fixmount.8,v 5.2.2.1 1992/02/09 15:11:15 jsp beta $
+.\" $Id: wire-test.8,v 1.1.1.1 1998/11/05 02:04:56 ezk Exp $
.\"
.TH WIRE-TEST 8L "26 Feb 1993"
.SH NAME
diff --git a/contrib/amd/wire-test/wire-test.c b/contrib/amd/wire-test/wire-test.c
index 11e3e99..dd6d750 100644
--- a/contrib/amd/wire-test/wire-test.c
+++ b/contrib/amd/wire-test/wire-test.c
@@ -17,7 +17,7 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
+ * must display the following acknowledgment:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
@@ -38,7 +38,7 @@
*
* %W% (Berkeley) %G%
*
- * $Id: wire-test.c,v 5.2.2.2 1992/06/07 18:06:46 jsp Exp jsp $
+ * $Id: wire-test.c,v 1.2 1998/12/27 06:25:28 ezk Exp $
*
*/
@@ -50,10 +50,16 @@
#define STRMAX 100
/* dummy variables */
-char *progname, hostname[MAXHOSTNAMELEN + 1];
-int orig_umask, foreground, debug_flags;
+#if 0
+char *progname;
pid_t mypid;
serv_state amd_state;
+int foreground, orig_umask;
+int debug_flags;
+#endif
+
+char hostname[MAXHOSTNAMELEN + 1];
+
int
main(int argc, char **argv)
@@ -65,9 +71,11 @@ main(int argc, char **argv)
struct sockaddr_in *ip;
struct hostent *hp = 0;
- progname = argv[0];
+ am_set_progname(argv[0]);
+#if 0
mypid = getpid();
orig_umask = umask(0);
+#endif
if (gethostname(hostname, sizeof(hostname)) < 0) {
perror(argv[0]);
OpenPOWER on IntegriCloud