Date: Sun, 6 Nov 2011 08:17:23 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r227185 - head/usr.bin/talk Message-ID: <201111060817.pA68HNX7009189@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Sun Nov 6 08:17:23 2011 New Revision: 227185 URL: http://svn.freebsd.org/changeset/base/227185 Log: Add missing static keywords to talk(1) Modified: head/usr.bin/talk/ctl.c head/usr.bin/talk/init_disp.c head/usr.bin/talk/invite.c head/usr.bin/talk/talk.h Modified: head/usr.bin/talk/ctl.c ============================================================================== --- head/usr.bin/talk/ctl.c Sun Nov 6 08:17:17 2011 (r227184) +++ head/usr.bin/talk/ctl.c Sun Nov 6 08:17:23 2011 (r227185) @@ -47,6 +47,7 @@ static const char sccsid[] = "@(#)ctl.c #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 }; Modified: head/usr.bin/talk/init_disp.c ============================================================================== --- head/usr.bin/talk/init_disp.c Sun Nov 6 08:17:17 2011 (r227184) +++ head/usr.bin/talk/init_disp.c Sun Nov 6 08:17:23 2011 (r227185) @@ -50,8 +50,6 @@ static const char sccsid[] = "@(#)init_d #include "talk.h" -extern volatile sig_atomic_t gotwinch; - /* * Make sure the callee can write to the screen */ Modified: head/usr.bin/talk/invite.c ============================================================================== --- head/usr.bin/talk/invite.c Sun Nov 6 08:17:17 2011 (r227184) +++ head/usr.bin/talk/invite.c Sun Nov 6 08:17:23 2011 (r227185) @@ -60,8 +60,8 @@ static const char sccsid[] = "@(#)invite * 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) Modified: head/usr.bin/talk/talk.h ============================================================================== --- head/usr.bin/talk/talk.h Sun Nov 6 08:17:17 2011 (r227184) +++ head/usr.bin/talk/talk.h Sun Nov 6 08:17:23 2011 (r227185) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111060817.pA68HNX7009189>