1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 23:33:33 +02:00

Remove unused headers and sort the remaining

OK tb@
This commit is contained in:
mestre
2016-02-01 07:25:51 +00:00
parent db3160292c
commit f652621fab
5 changed files with 32 additions and 38 deletions
+7 -12
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: announce.c,v 1.23 2015/01/16 06:39:51 deraadt Exp $ */
/* $OpenBSD: announce.c,v 1.24 2016/02/01 07:25:51 mestre Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -29,21 +29,16 @@
* SUCH DAMAGE.
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <protocols/talkd.h>
#include <errno.h>
#include <syslog.h>
#include <unistd.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vis.h>
#include <paths.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <vis.h>
#include "talkd.h"
static void print_mesg(FILE *,CTL_MSG *,char *);
+3 -4
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: print.c,v 1.11 2009/10/27 23:59:31 deraadt Exp $ */
/* $OpenBSD: print.c,v 1.12 2016/02/01 07:25:51 mestre Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -31,12 +31,11 @@
/* debug print routines */
#include <sys/types.h>
#include <sys/socket.h>
#include <protocols/talkd.h>
#include <syslog.h>
#include <stdio.h>
#include "talkd.h"
#include <syslog.h>
static char *types[] = {
"leave_invite", "look_up", "delete", "announce"
+9 -9
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: process.c,v 1.21 2015/01/16 06:39:51 deraadt Exp $ */
/* $OpenBSD: process.c,v 1.22 2016/02/01 07:25:51 mestre Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -37,18 +37,20 @@
* in the table for the local user
* DELETE - delete invitation
*/
#include <sys/stat.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/stat.h>
#include <arpa/inet.h>
#include <protocols/talkd.h>
#include <ctype.h>
#include <limits.h>
#include <netdb.h>
#include <syslog.h>
#include <paths.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <paths.h>
#include <limits.h>
#include <syslog.h>
#include <utmp.h>
#include "talkd.h"
#define satosin(sa) ((struct sockaddr_in *)(sa))
@@ -180,8 +182,6 @@ do_announce(CTL_MSG *mp, CTL_RESPONSE *rp)
}
}
#include <utmp.h>
/*
* Search utmp for the local user
*/
+6 -6
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: table.c,v 1.16 2015/01/16 06:39:51 deraadt Exp $ */
/* $OpenBSD: table.c,v 1.17 2016/02/01 07:25:51 mestre Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -37,15 +37,15 @@
*
* Consider this a mis-guided attempt at modularity
*/
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/queue.h>
#include <sys/socket.h>
#include <protocols/talkd.h>
#include <syslog.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include "talkd.h"
#define MAX_ID 16000 /* << 2^15 so I don't have sign troubles */
+7 -7
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: talkd.c,v 1.23 2015/01/16 06:39:51 deraadt Exp $ */
/* $OpenBSD: talkd.c,v 1.24 2016/02/01 07:25:51 mestre Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -35,19 +35,19 @@
* disconnect all descriptors and ttys, and then endless
* loop on waiting for and processing requests
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <protocols/talkd.h>
#include <signal.h>
#include <syslog.h>
#include <time.h>
#include <errno.h>
#include <unistd.h>
#include <limits.h>
#include <paths.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <paths.h>
#include <syslog.h>
#include <unistd.h>
#include "talkd.h"
int debug = 0;