summaryrefslogtreecommitdiff
path: root/libpod/lock
diff options
context:
space:
mode:
authorDmitry Smirnov <onlyjob@member.fsf.org>2019-11-12 15:39:36 +1100
committerDmitry Smirnov <onlyjob@member.fsf.org>2019-11-13 08:15:00 +1100
commit8d928d525ffa8147d34d0f148e0aec6189461318 (patch)
tree1d23cda4487383c0dd6bb5f7e86cabea75eec5fc /libpod/lock
parentde32b89eff0928abdef9d85a420b65d8865e737e (diff)
downloadpodman-8d928d525ffa8147d34d0f148e0aec6189461318.tar.gz
podman-8d928d525ffa8147d34d0f148e0aec6189461318.tar.bz2
podman-8d928d525ffa8147d34d0f148e0aec6189461318.zip
codespell: spelling corrections
Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
Diffstat (limited to 'libpod/lock')
-rw-r--r--libpod/lock/shm/shm_lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/lock/shm/shm_lock.c b/libpod/lock/shm/shm_lock.c
index fbb3f57cc..95052c40f 100644
--- a/libpod/lock/shm/shm_lock.c
+++ b/libpod/lock/shm/shm_lock.c
@@ -145,7 +145,7 @@ shm_struct_t *setup_lock_shm(char *path, uint32_t num_locks, int *error_code) {
// Set mutexes to robust - if a process dies while holding a mutex, we'll get
// a special error code on the next attempt to lock it.
- // This should prevent panicing processes from leaving the state unusable.
+ // This should prevent panicking processes from leaving the state unusable.
ret_code = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);
if (ret_code != 0) {
*error_code = -1 * ret_code;
@@ -298,7 +298,7 @@ int32_t close_lock_shm(shm_struct_t *shm) {
// Allocate the first available semaphore
// Returns a positive integer guaranteed to be less than UINT32_MAX on success,
// or negative errno values on failure
-// On sucess, the returned integer is the number of the semaphore allocated
+// On success, the returned integer is the number of the semaphore allocated
int64_t allocate_semaphore(shm_struct_t *shm) {
int ret_code, i;
bitmap_t test_map;