summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2016-11-09 21:36:21 -0600
committerPatrick Williams <patrick@stwcx.xyz>2016-11-09 21:36:29 -0600
commitd5ba008aa7b8b46cb09d670c7d1d012b4cd4635f (patch)
treee56efecb569c4f57eb6244c34b56e140c79dc23b
parentf0c91c07f32238e351c986d2353ff548f3071316 (diff)
downloadphosphor-time-manager-d5ba008aa7b8b46cb09d670c7d1d012b4cd4635f.tar.gz
phosphor-time-manager-d5ba008aa7b8b46cb09d670c7d1d012b4cd4635f.zip
time-config: fix compile warning
Unused result from 'system' call. Change-Id: I4f62e82ce51aaa86730aa45553f55d2241fc66f8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
-rw-r--r--time-config.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/time-config.cpp b/time-config.cpp
index 9e70044..e6af708 100644
--- a/time-config.cpp
+++ b/time-config.cpp
@@ -533,11 +533,11 @@ int TimeConfig::modifyNtpSettings(const timeModes& newTimeMode)
// TODO : https://github.com/openbmc/phosphor-time-manager/issues/1
if (ntpChangeOp)
{
- system("systemctl restart systemd-timesyncd &");
+ r = system("systemctl restart systemd-timesyncd &");
}
else
{
- system("systemctl stop systemd-timesyncd &");
+ r = system("systemctl stop systemd-timesyncd &");
}
}
return r;
OpenPOWER on IntegriCloud