summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk/get_names.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/talk/get_names.c')
-rw-r--r--usr.bin/talk/get_names.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/talk/get_names.c b/usr.bin/talk/get_names.c
index 0d1fcf1..793ce72 100644
--- a/usr.bin/talk/get_names.c
+++ b/usr.bin/talk/get_names.c
@@ -35,20 +35,18 @@
static char sccsid[] = "@(#)get_names.c 8.1 (Berkeley) 6/6/93";
#endif /* not lint */
+#include <unistd.h>
+#include <string.h>
#include <sys/param.h>
-#include <sys/socket.h>
-#include <protocols/talkd.h>
#include <pwd.h>
#include "talk.h"
-char *getlogin();
-char *ttyname();
-char *rindex();
extern CTL_MSG msg;
/*
* Determine the local and remote user, tty, and machines
*/
+void
get_names(argc, argv)
int argc;
char *argv[];
OpenPOWER on IntegriCloud