summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk/msgs.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-03-09 19:23:01 +0000
committerjoerg <joerg@FreeBSD.org>1996-03-09 19:23:01 +0000
commita12cf8aa0e1029b87db1d40e09450d0d09635334 (patch)
tree05d5824bd651018bd12409c9b3fa9369e6f2c193 /usr.bin/talk/msgs.c
parent17cc9fc50275a82f4224ba957d768981a45929d7 (diff)
downloadFreeBSD-src-a12cf8aa0e1029b87db1d40e09450d0d09635334.zip
FreeBSD-src-a12cf8aa0e1029b87db1d40e09450d0d09635334.tar.gz
Make talk automagically find out the interface IP address where the
remote peer will be connected through. This avoids the ``Checking for invitation on caller's machine'' problem for multi-homed hosts. Thanks to: Garrett, for his `find_interface' example
Diffstat (limited to 'usr.bin/talk/msgs.c')
-rw-r--r--usr.bin/talk/msgs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/talk/msgs.c b/usr.bin/talk/msgs.c
index 6e8cc9b..0b3eeee 100644
--- a/usr.bin/talk/msgs.c
+++ b/usr.bin/talk/msgs.c
@@ -50,12 +50,15 @@ static char sccsid[] = "@(#)msgs.c 8.1 (Berkeley) 6/6/93";
char *current_state;
int current_line = 0;
+/* ARGSUSED */
void
-disp_msg()
+disp_msg(signo)
+ int signo;
{
message(current_state);
}
+void
start_msgs()
{
struct itimerval itimer;
@@ -67,6 +70,7 @@ start_msgs()
setitimer(ITIMER_REAL, &itimer, (struct itimerval *)0);
}
+void
end_msgs()
{
struct itimerval itimer;
OpenPOWER on IntegriCloud