Add missing static keywords to talk(1)

This commit is contained in:
Ed Schouten 2011-11-06 08:17:23 +00:00
parent c7c497f1c5
commit b8d48d6233
4 changed files with 6 additions and 4 deletions

View File

@ -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 };

View File

@ -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
*/

View File

@ -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)

View File

@ -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;