diff options
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/connections.c | 6 | ||||
-rw-r--r-- | nscd/initgrcache.c | 2 | ||||
-rw-r--r-- | nscd/nscd-client.h | 2 | ||||
-rw-r--r-- | nscd/nscd.c | 2 | ||||
-rw-r--r-- | nscd/nscd_helper.c | 4 | ||||
-rw-r--r-- | nscd/nscd_setup_thread.c | 2 | ||||
-rw-r--r-- | nscd/nscd_stat.c | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/nscd/connections.c b/nscd/connections.c index b1231a9..a405a44 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -1454,7 +1454,7 @@ cannot change to old working directory: %s; disabling paranoia mode"), paranoia = 0; free (cmdline); - /* Reenable the databases. */ + /* Re-enable the databases. */ time_t now = time (NULL); for (int cnt = 0; cnt < lastdb; ++cnt) if (dbs[cnt].enabled) @@ -1532,11 +1532,11 @@ nscd_run_prune (void *p) if (e == ETIMEDOUT || now >= dbs[my_number].wakeup_time || dbs[my_number].clear_cache) { - /* We will determine the new timout values based on the + /* We will determine the new timeout values based on the cache content. Should there be concurrent additions to the cache which are not accounted for in the cache pruning we want to know about it. Therefore set the - timeout to the maximum. It will be descreased when adding + timeout to the maximum. It will be decreased when adding new entries to the cache, if necessary. */ dbs[my_number].wakeup_time = MAX_TIMEOUT_VALUE; diff --git a/nscd/initgrcache.c b/nscd/initgrcache.c index b8060da..be44951 100644 --- a/nscd/initgrcache.c +++ b/nscd/initgrcache.c @@ -93,7 +93,7 @@ addinitgroupsX (struct database_dyn *db, int fd, request_header *req, long int size; if (limit > 0) - /* We limit the size of the intially allocated array. */ + /* We limit the size of the initially allocated array. */ size = MIN (limit, 64); else /* No fixed limit on groups. Pick a starting buffer size. */ diff --git a/nscd/nscd-client.h b/nscd/nscd-client.h index 7275ccb..5588ade 100644 --- a/nscd/nscd-client.h +++ b/nscd/nscd-client.h @@ -389,7 +389,7 @@ extern int __nscd_open_socket (const char *key, size_t keylen, request_type type, void *response, size_t responselen) attribute_hidden; -/* Try to get a file descriptor for the shared meory segment +/* Try to get a file descriptor for the shared memory segment containing the database. */ extern struct mapped_database *__nscd_get_mapping (request_type type, const char *key, diff --git a/nscd/nscd.c b/nscd/nscd.c index 4241064..eb79136 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -600,7 +600,7 @@ check_pid (const char *file) /* If we cannot parse the file default to assuming nscd runs. If the PID is alive, assume it is running. That all unless - the PID is the same as the current process' since tha latter + the PID is the same as the current process' since the latter can mean we re-exec. */ if ((n != 1 || kill (pid, 0) == 0) && pid != getpid ()) return 1; diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c index 6a498b3..aa41dc1 100644 --- a/nscd/nscd_helper.c +++ b/nscd/nscd_helper.c @@ -251,7 +251,7 @@ __nscd_unmap (struct mapped_database *mapped) } -/* Try to get a file descriptor for the shared meory segment +/* Try to get a file descriptor for the shared memory segment containing the database. */ struct mapped_database * __nscd_get_mapping (request_type type, const char *key, @@ -443,7 +443,7 @@ __nscd_get_map_ref (request_type type, const char *name, #define MINIMUM_HASHENTRY_SIZE \ (offsetof (struct hashentry, dellist) + sizeof (int32_t)) -/* Don't return const struct datahead *, as eventhough the record +/* Don't return const struct datahead *, as even though the record is normally constant, it can change arbitrarily during nscd garbage collection. */ struct datahead * diff --git a/nscd/nscd_setup_thread.c b/nscd/nscd_setup_thread.c index ca363e6..5d6eff7 100644 --- a/nscd/nscd_setup_thread.c +++ b/nscd/nscd_setup_thread.c @@ -1,4 +1,4 @@ -/* Setup of nscd worker threads. Stub verison. +/* Setup of nscd worker threads. Stub version. Copyright (C) 2004-2023 Free Software Foundation, Inc. This file is part of the GNU C Library. diff --git a/nscd/nscd_stat.c b/nscd/nscd_stat.c index 1db4bee..a1c2053 100644 --- a/nscd/nscd_stat.c +++ b/nscd/nscd_stat.c @@ -275,7 +275,7 @@ receive_print_stats (void) if (enabled[0] == '\0') /* The locale does not provide this information so we have to translate it ourself. Since we should avoid short translation - terms we artifically increase the length. */ + terms we artificially increase the length. */ enabled = data.dbs[i].enabled ? yesstr : nostr; if (check_file[0] == '\0') check_file = data.dbs[i].check_file ? yesstr : nostr; |