about summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2023-05-20 13:37:47 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2023-06-02 01:39:48 +0000
commit7f0d9e61f40c669fca3cfd1e342fa8236c7220b7 (patch)
treee02ce0ba813f2cb4f20643988ec030292784cab6 /nscd
parent5013f6fc6c44160e8ec6bcd34ba676e85d9d6ab6 (diff)
downloadglibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.tar.gz
glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.tar.xz
glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.zip
Fix all the remaining misspellings -- BZ 25337
Diffstat (limited to 'nscd')
-rw-r--r--nscd/connections.c6
-rw-r--r--nscd/initgrcache.c2
-rw-r--r--nscd/nscd-client.h2
-rw-r--r--nscd/nscd.c2
-rw-r--r--nscd/nscd_helper.c4
-rw-r--r--nscd/nscd_setup_thread.c2
-rw-r--r--nscd/nscd_stat.c2
7 files changed, 10 insertions, 10 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index b1231a96db..a405a44a9b 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 b8060da64f..be44951bd6 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 7275ccb665..5588ade982 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 424106421f..eb79136b0f 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 6a498b363c..aa41dc158d 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 ca363e66fe..5d6eff7a59 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 1db4bee2ff..a1c2053234 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;