summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-11-06 08:17:23 +0000
committered <ed@FreeBSD.org>2011-11-06 08:17:23 +0000
commitf110f8c6496d2378eef48600b311722823b19777 (patch)
tree0263213dc9d17a1fde5b70cd8e961f4fddd4a6f6 /usr.bin/talk
parentae674f5b37ec764b04e1c17abf5eaac2d7d22c98 (diff)
downloadFreeBSD-src-f110f8c6496d2378eef48600b311722823b19777.zip
FreeBSD-src-f110f8c6496d2378eef48600b311722823b19777.tar.gz
Add missing static keywords to talk(1)
Diffstat (limited to 'usr.bin/talk')
-rw-r--r--usr.bin/talk/ctl.c1
-rw-r--r--usr.bin/talk/init_disp.c2
-rw-r--r--usr.bin/talk/invite.c4
-rw-r--r--usr.bin/talk/talk.h3
4 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/talk/ctl.c b/usr.bin/talk/ctl.c
index 4a3937b..0704b28 100644
--- a/usr.bin/talk/ctl.c
+++ b/usr.bin/talk/ctl.c
@@ -47,6 +47,7 @@ static const char sccsid[] = "@(#)ctl.c 8.1 (Berkeley) 6/6/93";
#include <string.h>
#include "talk.h"
+#include "talk_ctl.h"
struct sockaddr_in daemon_addr = { .sin_len = sizeof(daemon_addr), .sin_family = AF_INET };
struct sockaddr_in ctl_addr = { .sin_len = sizeof(ctl_addr), .sin_family = AF_INET };
diff --git a/usr.bin/talk/init_disp.c b/usr.bin/talk/init_disp.c
index ae162ef..47556c9 100644
--- a/usr.bin/talk/init_disp.c
+++ b/usr.bin/talk/init_disp.c
@@ -50,8 +50,6 @@ static const char sccsid[] = "@(#)init_disp.c 8.2 (Berkeley) 2/16/94";
#include "talk.h"
-extern volatile sig_atomic_t gotwinch;
-
/*
* Make sure the callee can write to the screen
*/
diff --git a/usr.bin/talk/invite.c b/usr.bin/talk/invite.c
index b22caaf..12b69b5 100644
--- a/usr.bin/talk/invite.c
+++ b/usr.bin/talk/invite.c
@@ -60,8 +60,8 @@ static const char sccsid[] = "@(#)invite.c 8.1 (Berkeley) 6/6/93";
* These are used to delete the
* invitations.
*/
-int local_id, remote_id;
-jmp_buf invitebuf;
+static int local_id, remote_id;
+static jmp_buf invitebuf;
void
invite_remote(void)
diff --git a/usr.bin/talk/talk.h b/usr.bin/talk/talk.h
index 85cdf11..5cf1d56 100644
--- a/usr.bin/talk/talk.h
+++ b/usr.bin/talk/talk.h
@@ -38,6 +38,7 @@
#include <arpa/inet.h>
#include <protocols/talkd.h>
#include <curses.h>
+#include <signal.h>
extern int sockt;
extern int curses_initialized;
@@ -46,6 +47,8 @@ extern int invitation_waiting;
extern const char *current_state;
extern int current_line;
+extern volatile sig_atomic_t gotwinch;
+
typedef struct xwin {
WINDOW *x_win;
int x_nlines;
OpenPOWER on IntegriCloud