Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.sbin/user Apply patch (requested by he):
details: https://anonhg.NetBSD.org/src/rev/82bf3bb39a82
branches: netbsd-1-4
changeset: 470738:82bf3bb39a82
user: he <he%NetBSD.org@localhost>
date: Wed Jul 05 21:08:32 2000 +0000
description:
Apply patch (requested by he):
Make the ersatz strlcpy() conform to the official prototype.
diffstat:
usr.sbin/user/user.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r bd8dd957c86f -r 82bf3bb39a82 usr.sbin/user/user.c
--- a/usr.sbin/user/user.c Wed Jul 05 21:07:11 2000 +0000
+++ b/usr.sbin/user/user.c Wed Jul 05 21:08:32 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: user.c,v 1.10.2.3 2000/02/04 22:57:21 he Exp $ */
+/* $NetBSD: user.c,v 1.10.2.4 2000/07/05 21:08:32 he Exp $ */
/*
* Copyright (c) 1999 Alistair G. Crooks. All rights reserved.
@@ -36,7 +36,7 @@
__COPYRIGHT(
"@(#) Copyright (c) 1999 \
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: user.c,v 1.10.2.3 2000/02/04 22:57:21 he Exp $");
+__RCSID("$NetBSD: user.c,v 1.10.2.4 2000/07/05 21:08:32 he Exp $");
#endif
#include <sys/types.h>
@@ -206,8 +206,8 @@
#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < NetBSD_1_4_K)
/* bounds checking strncpy */
-static int
-strlcpy(char *to, char *from, size_t tosize)
+size_t
+strlcpy(char *to, const char *from, size_t tosize)
{
size_t n;
int fromsize;
Home |
Main Index |
Thread Index |
Old Index