Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/kernel getsockname() needs a socklen_t, not a size_t
details: https://anonhg.NetBSD.org/src/rev/aa69f078bd85
branches: trunk
changeset: 785173:aa69f078bd85
user: martin <martin%NetBSD.org@localhost>
date: Thu Feb 28 20:41:21 2013 +0000
description:
getsockname() needs a socklen_t, not a size_t
diffstat:
tests/kernel/t_kauth_pr_47598.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 035fcf878a26 -r aa69f078bd85 tests/kernel/t_kauth_pr_47598.c
--- a/tests/kernel/t_kauth_pr_47598.c Thu Feb 28 18:33:01 2013 +0000
+++ b/tests/kernel/t_kauth_pr_47598.c Thu Feb 28 20:41:21 2013 +0000
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2013\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_kauth_pr_47598.c,v 1.1 2013/02/28 15:31:22 martin Exp $");
+__RCSID("$NetBSD: t_kauth_pr_47598.c,v 1.2 2013/02/28 20:41:21 martin Exp $");
#include <errno.h>
#include <unistd.h>
@@ -62,7 +62,8 @@
static const char curtain_name[] = "security.models.bsd44.curtain";
int old_curtain, new_curtain = 1, s, s2, err;
- size_t old_curtain_len = sizeof(old_curtain), slen;
+ size_t old_curtain_len = sizeof(old_curtain);
+ socklen_t slen;
struct sockaddr_in sa;
/*
Home |
Main Index |
Thread Index |
Old Index