1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Fix warnings

- Remove argc/argv (-Wunused)
- Mark some parameters to socket_listen_update __unused (-Wunused)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2015-04-10 09:26:21 +00:00
parent cc469a3b3a
commit 7d075cff6e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281360
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PROG= listen_backlog
WARNS?= 3
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -218,7 +218,8 @@ test_defaults(void)
* the first and second listen().
*/
static int
socket_listen_update(int domain, int type, int protocol, int backlog,
socket_listen_update(int domain __unused, int type __unused,
int protocol __unused, int backlog,
int update_backlog, int listen_backlog_assertion,
int update_backlog_assertion, int *sockp, const char *domainstring,
const char *typestring, const char *testclass, const char *test)
@ -365,7 +366,7 @@ test_set_qlimit(void)
}
int
main(int argc, char *argv[])
main(void)
{
size_t len;