From 070f36d1ae7c857e4e6fb2b546fd9c445c86627c Mon Sep 17 00:00:00 2001 From: Jeremy Ellington Date: Tue, 20 Jun 2006 19:20:25 +0000 Subject: [PATCH] __ipmi_sel_savelist_entries should return 0 instead of -1 if the SEL is empty. An empty SEL shouldn't be an error condition when listing the SEL. --- ipmitool/lib/ipmi_sel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipmitool/lib/ipmi_sel.c b/ipmitool/lib/ipmi_sel.c index 90876e0..3d2ab50 100644 --- a/ipmitool/lib/ipmi_sel.c +++ b/ipmitool/lib/ipmi_sel.c @@ -1281,7 +1281,7 @@ __ipmi_sel_savelist_entries(struct ipmi_intf * intf, int count, const char * sav if (rsp->data[1] == 0 && rsp->data[2] == 0) { lprintf(LOG_ERR, "SEL has no entries"); - return -1; + return 0; } memset(&req, 0, sizeof(req));