pgood_wait: fix various warnings
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic301c47052a3c7e0af56073395f7ce490727de0f
diff --git a/op-pwrctl/pgood_wait/pgood_wait.c b/op-pwrctl/pgood_wait/pgood_wait.c
index 069ee35..f89a24f 100644
--- a/op-pwrctl/pgood_wait/pgood_wait.c
+++ b/op-pwrctl/pgood_wait/pgood_wait.c
@@ -13,13 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
-#include <errno.h>
+#include <unistd.h>
#include <systemd/sd-bus.h>
#include <systemd/sd-event.h>
+/* Copied from phosphor-objmgr to make the code compile. */
+static const int mapper_busy_retries = 5;
+static const uint64_t mapper_busy_delay_interval_usec = 1000000;
+
static void quit(int r, void *loop)
{
sd_event_exit((sd_event *)loop, r);
@@ -27,6 +32,8 @@
static int callback(sd_bus_message *m, void *user, sd_bus_error *error)
{
+ (void) error;
+
sd_event *loop = user;
int r;
char *property = NULL;