From 9c8277247d3e2e60a1f945d82851f58447cbdd74 Mon Sep 17 00:00:00 2001
From: Daniel J Walsh <dwalsh@redhat.com>
Date: Wed, 21 Apr 2021 05:38:34 -0400
Subject: Fixes from make codespell

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
---
 libpod/container_internal.go | 4 ++--
 libpod/define/fileinfo.go    | 2 +-
 libpod/image/utils.go        | 2 +-
 libpod/shutdown/handler.go   | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

(limited to 'libpod')

diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index 041fa13e7..80c00a622 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -1313,7 +1313,7 @@ func (c *Container) stop(timeout uint) error {
 	}
 
 	// We have to check stopErr *after* we lock again - otherwise, we have a
-	// change of panicing on a double-unlock. Ref: GH Issue 9615
+	// change of panicking on a double-unlock. Ref: GH Issue 9615
 	if stopErr != nil {
 		return stopErr
 	}
@@ -1676,7 +1676,7 @@ func (c *Container) chownVolume(volumeName string) error {
 
 	// TODO: For now, I've disabled chowning volumes owned by non-Podman
 	// drivers. This may be safe, but it's really going to be a case-by-case
-	// thing, I think - safest to leave disabled now and reenable later if
+	// thing, I think - safest to leave disabled now and re-enable later if
 	// there is a demand.
 	if vol.state.NeedsChown && !vol.UsesVolumeDriver() {
 		vol.state.NeedsChown = false
diff --git a/libpod/define/fileinfo.go b/libpod/define/fileinfo.go
index 2c7b6fe99..eec99e300 100644
--- a/libpod/define/fileinfo.go
+++ b/libpod/define/fileinfo.go
@@ -5,7 +5,7 @@ import (
 	"time"
 )
 
-// FileInfo describes the attributes of a file or diretory.
+// FileInfo describes the attributes of a file or directory.
 type FileInfo struct {
 	Name       string      `json:"name"`
 	Size       int64       `json:"size"`
diff --git a/libpod/image/utils.go b/libpod/image/utils.go
index 0b4264112..dfe35c017 100644
--- a/libpod/image/utils.go
+++ b/libpod/image/utils.go
@@ -50,7 +50,7 @@ func findImageInRepotags(search imageParts, images []*Image) (*storage.Image, er
 
 	// If more then one candidate and the candidates all have same name
 	// and only one is read/write return it.
-	// Othewise return error with the list of candidates
+	// Otherwise return error with the list of candidates
 	if len(candidates) > 1 {
 		var (
 			rwImage    *Image
diff --git a/libpod/shutdown/handler.go b/libpod/shutdown/handler.go
index ac1d33910..848b6729a 100644
--- a/libpod/shutdown/handler.go
+++ b/libpod/shutdown/handler.go
@@ -18,7 +18,7 @@ var (
 	stopped    bool
 	sigChan    chan os.Signal
 	cancelChan chan bool
-	// Syncronize accesses to the map
+	// Synchronize accesses to the map
 	handlerLock sync.Mutex
 	// Definitions of all on-shutdown handlers
 	handlers map[string]func(os.Signal) error
-- 
cgit v1.2.3-54-g00ecf