summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2017-10-25 20:45:28 -0500
committerGunnar Mills <gmills@us.ibm.com>2017-10-25 20:45:50 -0500
commit7f25c53fa79f71a12b11593ac7eda23a9b8d3e1a (patch)
treef44c0bb1c1e460b4c910ccc1efe3aa50924c4d1a
parent383b7120b68a42cb5587b6d2199826f012d575b3 (diff)
downloadphosphor-time-manager-7f25c53fa79f71a12b11593ac7eda23a9b8d3e1a.tar.gz
phosphor-time-manager-7f25c53fa79f71a12b11593ac7eda23a9b8d3e1a.zip
Spelling fixes
Change-Id: Ia840360c00cc8d7baaafd797ae2411bc5cc03ed3 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--configure.ac2
-rw-r--r--main.cpp2
-rw-r--r--manager.cpp4
-rw-r--r--test/TestManager.cpp4
4 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index aa54962..b95dc93 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,7 +10,7 @@ AM_SILENT_RULES([yes])
AC_PROG_CXX
AM_PROG_AR
-# Surpress the --with-libtool-sysroot error
+# Suppress the --with-libtool-sysroot error
LT_INIT
# Check for libraries
diff --git a/main.cpp b/main.cpp
index 1798dc0..b75c133 100644
--- a/main.cpp
+++ b/main.cpp
@@ -15,7 +15,7 @@ int main()
};
using SdEvent = std::unique_ptr<sd_event, decltype(eventDeleter)>;
- // acquire a referece to the default event loop
+ // acquire a reference to the default event loop
sd_event_default(&event);
SdEvent sdEvent {event, eventDeleter};
event = nullptr;
diff --git a/manager.cpp b/manager.cpp
index 1c971a3..1145d33 100644
--- a/manager.cpp
+++ b/manager.cpp
@@ -111,12 +111,12 @@ void Manager::onPropertyChanged(const std::string& key,
if (hostOn)
{
// If host is on, set the values as requested time mode/owner.
- // And when host becomes off, notify the listners.
+ // And when host becomes off, notify the listeners.
setPropertyAsRequested(key, value);
}
else
{
- // If host is off, notify listners
+ // If host is off, notify listeners
if (key == PROPERTY_TIME_MODE)
{
setCurrentTimeMode(value);
diff --git a/test/TestManager.cpp b/test/TestManager.cpp
index decc21d..aa7a647 100644
--- a/test/TestManager.cpp
+++ b/test/TestManager.cpp
@@ -84,7 +84,7 @@ TEST_F(TestManager, DISABLED_hostStateChange)
TEST_F(TestManager, DISABLED_propertyChanged)
{
- // When host is off, property change will be notified to listners
+ // When host is off, property change will be notified to listeners
EXPECT_FALSE(hostOn());
// Check mocked listeners shall receive notifications on property changed
@@ -126,7 +126,7 @@ TEST_F(TestManager, DISABLED_propertyChanged)
// When host becomes off, the requested mode/owner shall be notified
- // to listners, and be cleared
+ // to listeners, and be cleared
EXPECT_CALL(listener1, onModeChanged(Mode::NTP)).Times(1);
EXPECT_CALL(listener1, onOwnerChanged(Owner::Split)).Times(1);
EXPECT_CALL(listener2, onModeChanged(Mode::NTP)).Times(1);
OpenPOWER on IntegriCloud