Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/user Remove code for 1.4 backward compatibility (to...
details: https://anonhg.NetBSD.org/src/rev/7aa531927749
branches: trunk
changeset: 485768:7aa531927749
user: hubertf <hubertf%NetBSD.org@localhost>
date: Fri May 05 01:27:47 2000 +0000
description:
Remove code for 1.4 backward compatibility (to be put into the package,
where it really belongs)
diffstat:
usr.sbin/user/user.c | 22 ++--------------------
1 files changed, 2 insertions(+), 20 deletions(-)
diffs (43 lines):
diff -r 05200690b3b0 -r 7aa531927749 usr.sbin/user/user.c
--- a/usr.sbin/user/user.c Fri May 05 01:13:07 2000 +0000
+++ b/usr.sbin/user/user.c Fri May 05 01:27:47 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: user.c,v 1.17 2000/04/14 06:26:55 simonb Exp $ */
+/* $NetBSD: user.c,v 1.18 2000/05/05 01:27:47 hubertf 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.17 2000/04/14 06:26:55 simonb Exp $");
+__RCSID("$NetBSD: user.c,v 1.18 2000/05/05 01:27:47 hubertf Exp $");
#endif
#include <sys/types.h>
@@ -202,24 +202,6 @@
return ret;
}
-#define NetBSD_1_4_K 104110000
-
-#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 n;
- int fromsize;
-
- fromsize = strlen(from);
- n = MIN(tosize - 1, fromsize);
- (void) memcpy(to, from, n);
- to[n] = '\0';
- return fromsize;
-}
-#endif
-
#ifdef EXTENSIONS
/* return 1 if all of `s' is numeric */
static int
Home |
Main Index |
Thread Index |
Old Index