Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Fix typos in comment.
details: https://anonhg.NetBSD.org/src/rev/af1de605ab07
branches: trunk
changeset: 758812:af1de605ab07
user: enami <enami%NetBSD.org@localhost>
date: Tue Nov 16 03:02:20 2010 +0000
description:
Fix typos in comment.
diffstat:
lib/libc/stdlib/_env.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r 95ef5a8d23d8 -r af1de605ab07 lib/libc/stdlib/_env.c
--- a/lib/libc/stdlib/_env.c Tue Nov 16 02:53:49 2010 +0000
+++ b/lib/libc/stdlib/_env.c Tue Nov 16 03:02:20 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _env.c,v 1.2 2010/11/14 22:04:36 tron Exp $ */
+/* $NetBSD: _env.c,v 1.3 2010/11/16 03:02:20 enami Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
#define ENV_ARRAY_SIZE_MIN 16
-/* The lock protecting accces to the environment. */
+/* The lock protecting access to the environment. */
#ifdef _REENTRANT
static rwlock_t env_lock = RWLOCK_INITIALIZER;
#endif
@@ -176,9 +176,9 @@
}
/*
- * Check whether an enviroment variable is writable. This function must be
+ * Check whether an environment variable is writable. This function must be
* called with the environment write locked as the caller will probably
- * overwrite the enviroment variable afterwards.
+ * overwrite the environment variable afterwards.
*/
bool
__canoverwriteenvvar(char *envvar, size_t length)
@@ -265,7 +265,7 @@
(void)memset(&new_environ[num_entries], 0,
(new_size - num_entries) * sizeof(*new_environ));
- /* Use the new environent array. */
+ /* Use the new environment array. */
environ = allocated_environ = new_environ;
allocated_environ_size = new_size;
Home |
Main Index |
Thread Index |
Old Index